Commit graph

2766 commits

Author SHA1 Message Date
Steve Dower
bb7fd3f4d0 Fix build batch files (#2750) (#2897)
* Enable building MSI, zip and nuget packages when Py_OutDir is set.

* Restore the --build option, which got reverted at some point.

* Ensure output directory is created.

* Enables BuildForDaily and DailyBuildVersion options for nuget package.
2017-07-26 14:20:41 -07:00
Steve Dower
e99d3a52a5 [3.6] bpo-30450: Improved logic for obtaining dependencies (#2751)
Adds alternate download approach for nuget.exe
Fall back to git.exe if no Python is found. (#2739)
Also check whether git.exe is on PATH if it will be used.
Add support for HOST_PYTHON variable.
Clear internal environment variables used in find_python.bat
Use HOST_PYTHON as the actual Python if it is recent enough.
Adds HOST_PYTHON variable to AppVeyor configuration
2017-07-19 09:11:08 +02:00
Brett Cannon
57ee0c8c9e [3.6] Check the whitespace of pull requests on Travis (GH-2367) (GH-2386)
(cherry picked from commit 70cb1875bb)
2017-06-24 17:59:49 -07:00
Steve Dower
06d6e3d0bb bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat (#2252) (#2280)
* Fixes build scripts to find msbuild.exe and stop relying on vcvarsall.bat
Also fixes bdist_wininst.vcxproj to use correct version in generated name.
2017-06-19 11:12:56 -07:00
Victor Stinner
085a57a8d6 Revert "bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)" (#2246)
This reverts commit e064d4dfed.
2017-06-16 14:38:32 +02:00
Zachary Ware
04431c926a bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783) (GH-2237)
The Windows build now depends on Python 3.6 to fetch externals, but it will be downloaded via NuGet (which is downloaded via PowerShell) if it is not available via `py -3.6`.  This means the only thing that must be installed on a modern Windows box to do a full build of CPython with all extensions is Visual Studio.

Also fixes an outdated note about _lzma in PCbuild/readme.txt

(cherry-picked from commit 51599e2bdd)
2017-06-16 01:06:36 -05:00
Victor Stinner
e064d4dfed bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)
(cherry picked from commit 258bfc462b)
2017-06-16 00:14:35 +02:00
Zachary Ware
964c261dc9 [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)
Also updates checked-in line endings on some files
2017-06-10 15:39:29 -05:00
Victor Stinner
d05f7fdf6c [3.6] bpo-30345: Update test_gdb.py and python-gdb.py from master (#1549)
* python-gdb.py supports method-wrapper

bpo-29367: python-gdb.py now supports also method-wrapper (wrapperobject)
objects.

(cherry picked from commit 611083331d)

* Update and enhance python-gdb.py

bpo-29259: Detect PyCFunction is the current frame, not only in the
older frame.
2017-05-13 00:21:50 +02:00
Victor Stinner
9d02f56296 [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461)
* bpo-23404: make touch becomes make regen-all (#1405)

Don't rebuild generated files based on file modification time
anymore, the action is now explicit. Replace "make touch"
with "make regen-all".

Changes:

* Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
* Add a new "make regen-all" command to rebuild all generated files
* Add subcommands to only generate specific files:

  - regen-ast: Include/Python-ast.h and Python/Python-ast.c
  - regen-grammar: Include/graminit.h and Python/graminit.c
  - regen-importlib: Python/importlib_external.h and Python/importlib.h
  - regen-opcode: Include/opcode.h
  - regen-opcode-targets: Python/opcode_targets.h
  - regen-typeslots: Objects/typeslots.inc

* Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN
* pgen is now only built by by "make regen-grammar"
* Add $(srcdir)/ prefix to paths to source files to handle correctly
  compilation outside the source directory

Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make"
default target building Python.
(cherry picked from commit a5c62a8e9f)

* bpo-30273: Update sysconfig (#1464)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8e9f (bpo-23404).

AST_H_DIR was hardcoded to "Include", so replace the removed variable
by its content.

Remove also ASDLGEN variable from sysconfig example since this
variable was also removed.
(cherry picked from commit b109a1d336)
2017-05-05 00:46:56 +02:00
Mariatta
430020500c [3.6] bpo-30109: Fix reindent.py (GH-1207) (GH-1208)
Skip the file if it has bad encoding.
(cherry picked from commit 58f3c9dc8f)
2017-04-20 07:12:37 -07:00
Nick Coghlan
4c116cb3b3 bpo-29798: Handle git worktree in patchcheck (#1058) (#1060)
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
(cherry picked from commit 2abfdf5a81)
2017-04-09 19:22:36 +10:00
Steve Dower
9cd5e87bac Takes vcruntime140.dll from the correct source. (#684) 2017-03-16 11:03:03 -07:00
Nick Coghlan
61a82a5fbf bpo-29798: Handle git worktree in make patchcheck (#629) (#633)
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
(cherry picked from commit 6a6d090612)
2017-03-12 20:00:20 +10:00
Nick Coghlan
2f386254e2 bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#626)
(cherry picked from commit 482f7a274f)
2017-03-12 16:17:46 +10:00
Mariatta
23b26c4e20 Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
(cherry picked from commit 661ca8843f)
2017-03-07 02:44:11 -08:00
Steve Dower
e544b40faa Fixes the upload script to purge the CDN correctly and display success output. (#466) (#497) 2017-03-05 19:58:06 -08:00
Steve Dower
d3e1e9df72 bpo-27593: Updates Windows build to use information from git (#262) (#450)
* bpo-27593: Updates Windows build to use information from git
2017-03-03 21:32:17 -08:00
Steve Dower
f2beceb7e5 bpo-29624: Adds purge step and layout test after uploading files. (#258) (#264) 2017-02-23 15:03:20 -08:00
Senthil Kumaran
a4afdfcf27 Change some mercurial/ hg.python.org references. (#8) (#185)
(cherry picked from commit b2ee40ed9c)
2017-02-19 18:58:33 -08:00
Steve Dower
d372cda5cd bpo-29579: Removes readme.txt from the installer. (#161) 2017-02-18 16:12:06 -08:00
Steve Dower
f007b49eb9 Includes ensurepip and venv packages in nuget package. 2017-02-06 14:12:19 -08:00
Steve Dower
5288477cfd Includes ensurepip and venv packages in nuget package. 2017-02-06 14:11:34 -08:00
Victor Stinner
cb5fe9c22c Merge 3.5 2016-12-16 10:00:53 +01:00
Victor Stinner
610f5d739d python-gdb.py: catch gdb.error on gdb.selected_frame() 2016-12-16 10:00:39 +01:00
Steve Dower
b227227cb5 Issue #28783: Replaces bdist_wininst in nuget packages with stub 2016-12-11 14:48:32 -08:00
Steve Dower
e711cc0f22 Issue #28783: Replaces bdist_wininst in nuget packages with stub 2016-12-11 14:35:07 -08:00
Steve Dower
190dbd9ba2 Issue #28846: Various installer fixes 2016-12-03 11:18:53 -08:00
Steve Dower
f0888cd734 Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command. 2016-11-23 10:23:47 -08:00
Victor Stinner
eae64fda5b Issue #28770: Update python-gdb.py for fastcalls
Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict()
frames.

Thanks to the new code to handle fast calls, python-gdb.py is now also able to
detect the <built-in id method of module ...> frame.
2016-11-22 22:53:18 +01:00
Steve Dower
1058109b31 Issue #28846: Various installer fixes 2016-12-03 11:24:02 -08:00
Steve Dower
2a94301911 Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command. 2016-11-23 11:42:35 -08:00
Steve Dower
02a4018c6e Issue #28573: Missing sys._mercurial info and other build issues. 2016-11-22 11:48:52 -08:00
Victor Stinner
3a5d79fbc8 Issue #28023: Fix python-gdb.py on old GDB versions
Replace int(value.address)+offset with value.cast(unsigned char*)+offset.

It seems like int(value.address) fails on old versions of GDB.
2016-11-22 13:09:39 +01:00
INADA Naoki
d7d2bc8798 Issue #28023: Fix python-gdb.py didn't support new dict implementation 2016-11-22 19:40:58 +09:00
Steve Dower
c851817aaa Fixes incorrect path in nuget package build. 2016-11-16 16:32:22 -08:00
Steve Dower
de40e1218c Issue #28573: Fixes issue with nested if blocks 2016-11-14 17:51:42 -08:00
Steve Dower
4468bed2fc Issue #28573: Avoid setting up env too many times during build 2016-11-14 16:13:56 -08:00
Steve Dower
4782ab3aa3 Adds missing _asyncio.pyd to installer and generally tidies pyd management. 2016-10-29 09:23:39 -07:00
Steve Dower
d14ae161de Removes incorrect condition from lib_pdb.msi 2016-10-28 11:19:42 -07:00
Steve Dower
43ab355e0e Removes incorrect condition from lib_pdb.msi 2016-10-28 11:19:18 -07:00
Steve Dower
31c80e8eae Revert incorrect file merge from 3.5. 2016-10-27 12:14:48 -07:00
Steve Dower
43d2b264b9 Merge from 3.5 2016-10-27 12:12:24 -07:00
Steve Dower
fcf622e30e Updates release build to collect symbols and binaries, and create nuget package. 2016-10-27 12:08:45 -07:00
Steve Dower
ec1f28a63c Fix launcher.msi from rebuilding during release build. 2016-10-10 16:19:06 -07:00
Steve Dower
425ec150ea Issue #28402: Adds signed catalog files for stdlib on Windows. 2016-10-09 20:18:52 -07:00
Steve Dower
312cef7452 Issue #28217: Adds _testconsole module to test console input. Fixes some issues found by the tests. 2016-10-03 09:04:58 -07:00
Steve Dower
765285337a Issue #28251: Improvements to help manuals on Windows. 2016-09-22 17:09:56 -07:00
Steve Dower
fb4a96a58f Issue #28251: Improvements to help manuals on Windows. 2016-09-22 17:07:56 -07:00
Steve Dower
7e3dfd1548 Fixes bad merge for issue #28110 2016-09-17 16:34:38 -07:00