Commit Graph

2733 Commits

Author SHA1 Message Date
Serhiy Storchaka fd2839e1de Merge 3.5 2016-04-24 23:53:16 +03:00
Serhiy Storchaka 5b6f0aa71c Remove duplicated tests.
There were duplicated methods with the same name and body.
2016-04-24 23:50:18 +03:00
Victor Stinner af1baabfce Merge 3.5 2016-04-20 18:26:40 +02:00
Victor Stinner 19620c57d7 gdb/libpython.py: inline _type_void_ptr()
The function was only called in _sizeof_void_p()
2016-04-20 18:26:12 +02:00
Victor Stinner c88390f02d Merge 3.5: Issue #26799 2016-04-20 18:12:38 +02:00
Victor Stinner 4e75ca87e3 python-gdb.py: get C types at runtime
Issue #26799: Fix python-gdb.py: don't get once C types when the Python code
is loaded, but get C types on demande. The C types can change if
python-gdb.py is loaded before the Python executable.

Patch written by Thomas Ilsche.
2016-04-20 18:07:21 +02:00
Victor Stinner 328cb1fed0 Update pygettext.py to get ride of imp
Issue #26639: Replace imp with importlib in Tools/i18n/pygettext.py.

Remove _get_modpkg_path(), replaced with importlib.util.find_spec().
2016-04-12 18:46:10 +02:00
Victor Stinner 96f6e7a1ed Buildbots: change also Windows timeout from 1 hour to 15 min 2016-03-23 12:38:01 +01:00
Serhiy Storchaka a051bf3afb Issue #26581: Use the first coding cookie on a line, not the last one. 2016-03-20 23:47:48 +02:00
Serhiy Storchaka e431d3c9aa Issue #26581: Use the first coding cookie on a line, not the last one. 2016-03-20 23:36:29 +02:00
Brett Cannon 32cba67b9f Merge for issue #26271 2016-03-18 10:30:21 -07:00
Brett Cannon e4044bfe63 Issue #26271: Fix the Freeze tool to use variables passed in from the
configure script related to compiler flags.

Thanks to Daniel Shaulov for the bug report and patch.
2016-03-18 10:29:43 -07:00
Steve Dower 39f57caf3a Backs out buildbot clean trigger. 2016-03-08 13:10:46 -08:00
Steve Dower 4a6f4825f4 Backs out buildbot clean trigger. 2016-03-08 13:10:29 -08:00
Steve Dower 332018d17c Adds warning to prepare_ssl when nasm is not available.
Force clean externals on buildbots.
2016-03-08 12:51:19 -08:00
Steve Dower 79993a90e2 Adds warning to prepare_ssl when nasm is not available.
Force clean of externals on buildbots.
2016-03-08 12:50:57 -08:00
Berker Peksag d07a1cb53b Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py
Patch by Guo Ci Teo.
2016-03-06 16:50:44 +02:00
Berker Peksag d66dd5ce68 Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py
Patch by Guo Ci Teo.
2016-03-06 16:50:15 +02:00
Martin Panter 8a5e69ca8c Issue #26316: Merge Arg Clinic fix from 3.5 2016-02-14 03:25:48 +00:00
Martin Panter 4177e7c38e Issue #26316: Fix variable name typo in Argument Clinic 2016-02-14 03:23:13 +00:00
Serhiy Storchaka 885bdc4946 Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
2016-02-11 13:10:36 +02:00
Victor Stinner f2c1aa1661 Add ast.Constant
Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.

An optimizer can replace the following AST nodes with ast.Constant:

* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset

Update code to accept ast.Constant instead of ast.Num and/or ast.Str:

* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
2016-01-26 00:40:57 +01:00
Steve Dower c3cd76a2a1 Issue #26065: Excludes venv from library when generating embeddable distro. 2016-01-16 13:45:32 -08:00
Steve Dower 10cabcbe14 Issue #26065: Excludes venv from library when generating embeddable distro. 2016-01-16 13:44:43 -08:00
Steve Dower 7b28eb1457 Merge from 3.5 (including all NEWS entries) 2015-12-02 09:19:07 -08:00
Steve Dower 10f997d986 Issue #25715: Python 3.5.1 installer shows wrong upgrade path and incorrect logic for launcher detection. 2015-12-02 08:28:51 -08:00
Martin Panter b4ce1fc31b Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failure 2015-11-30 03:18:29 +00:00
Steve Dower 9450f6b437 Merge from 3.5 2015-11-22 18:20:37 -08:00
Steve Dower 21cecb904f Fixes upload directories for Windows installer. 2015-11-22 18:20:11 -08:00
Steve Dower f4ac4e3de2 Fixes installer not allowing launcher to be selected. 2015-11-09 07:31:20 -05:00
Steve Dower 5e2e70029b Fixes installer not allowing launcher to be selected. 2015-11-09 07:31:05 -05:00
Martin Panter e56a919100 Issue #25523: Merge a-to-an corrections from 3.5 2015-11-02 04:27:17 +00:00
Martin Panter 2eb819f7a8 Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
Martin Panter 7462b64911 Issue #25523: Correct "a" article to "an" article
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
2015-11-02 03:37:02 +00:00
Steve Dower bfb03a470c Merge from 3.5 2015-10-31 13:07:44 -07:00
Steve Dower 04a4316acc Issue #25450: Updates shortcuts to start Python in installation directory. 2015-10-31 12:41:46 -07:00
Steve Dower 940f6a8f11 Improves handling of test markers for building Python without intefering with actual installs. 2015-10-31 12:17:11 -07:00
Terry Jan Reedy 4df429618d Merge with 3.5 2015-10-30 19:26:03 -04:00
Terry Jan Reedy 3f209b63f5 Merge with 3.4 2015-10-30 19:25:50 -04:00
Terry Jan Reedy a05e7f6743 Issue #25505: Remove unused buggy method. 2015-10-30 19:25:34 -04:00
Benjamin Peterson e448066268 merge 3.5 (#25504) 2015-10-29 21:11:29 -07:00
Benjamin Peterson adf8627f41 merge 3.4 (#25504) 2015-10-29 21:11:22 -07:00
Benjamin Peterson dcc13ef1e9 fix usage of undefined name (#25504) 2015-10-29 21:10:57 -07:00
Brett Cannon dd1e670758 Fix a variable typo by switching to a f-string. 2015-10-26 17:11:04 -07:00
Brett Cannon f1c47e4751 Issue #25154: Make the file argument apply to the print function and
not str.format call.
2015-10-25 17:40:31 -07:00
Steve Dower 5b6f3644e6 Issue #24633: Removes automatic rename of site-packages/README since README.txt is now committed. 2015-10-23 13:24:03 -07:00
Steve Dower fe3e7a006e Moves Windows installer externals onto SVN and updates the build process to grab them automatically. 2015-10-23 09:51:16 -07:00
Steve Dower d28a8a994b Moves Windows installer externals onto SVN and updates the build process to grab them automatically. 2015-10-23 09:50:49 -07:00
Brett Cannon 9b63868f77 Issue #25154: Deprecate the pyvenv script.
This was done so as to move users to `python3 -m venv` which prevents
confusion over which Python interpreter will be used in the virtual
environment when more than one is installed.
2015-10-16 15:14:27 -07:00
Steve Dower b8c1309cba Merge from 3.5 2015-10-14 10:41:52 -07:00
Steve Dower 148827c32a Enabled --pgo option for building 64-bit PGO enabled releases. 2015-10-14 10:40:09 -07:00
Steve Dower bc94fd7b49 Issue #25164: Changes default all-users install directory to match per-user directory. 2015-10-14 10:36:36 -07:00
Steve Dower 66b037b087 Merge from 3.5 2015-10-11 18:07:07 -07:00
Steve Dower bec29815d2 Keeps all-users launcher checkbox visible when the option cannot be changed. 2015-10-11 18:06:55 -07:00
Steve Dower 79e60dec1b Merge from 3.5 2015-10-11 18:05:27 -07:00
Steve Dower 8ffe4fdeb0 Only detects features from previous version when a bundle is found.
Otherwise, stray registry entries would cause issues.
Also fixes an accelerator collision and improves UAC icons when upgrading.
2015-10-11 18:05:11 -07:00
Steve Dower 3628d488c7 Issue #25143: Improves installer error messages for unsupported platforms. 2015-10-11 16:40:52 -07:00
Steve Dower b96698112d Issue #25143: Improves installer error messages for unsupported platforms. 2015-10-11 16:40:41 -07:00
Steve Dower 5669387948 Issue #25163: Display correct directory in installer when using non-default settings. 2015-10-11 15:37:36 -07:00
Steve Dower 731f4a2c5f Issue #25163: Display correct directory in installer when using non-default settings. 2015-10-11 15:37:22 -07:00
Steve Dower 6e8d6ed2f4 Merge from 3.5 2015-10-08 10:00:55 -07:00
Steve Dower 5ae56919ab Issue #25089: Adds logging to installer for case where launcher is not selected on upgrade. 2015-10-08 09:55:49 -07:00
Steve Dower 666e6e1b4b Merge from 3.5 2015-10-08 09:06:39 -07:00
Steve Dower 3cc6da2b07 Removes deprecated -n option from buildbot script. 2015-10-08 09:06:17 -07:00
Serhiy Storchaka fc632e3912 Merge with 3.5. 2015-10-06 18:52:52 +03:00
Steve Dower 30b7138fe1 Merge from 3.5 2015-10-01 15:20:11 -07:00
Steve Dower c9fda9b903 Issue #25165: Windows uninstallation should not remove launcher if other versions remain 2015-10-01 15:19:39 -07:00
Steve Dower c4b7600b90 Improves support for building unofficial versions of the Windows installer. 2015-10-01 15:18:53 -07:00
Steve Dower 8ef1db34bb Merge with 3.5 2015-09-22 17:01:17 -07:00
Steve Dower a2ea0e4804 Issue #25102: Windows installer does not precompile for -O or -OO. 2015-09-22 16:45:19 -07:00
Steve Dower 44fe401aa3 Issue #25081: Makes Back button in installer go back to upgrade page when upgrading. 2015-09-22 16:36:33 -07:00
Steve Dower 14b9e6c6a7 Issue #25126: Clarifies that the non-web installer will download some components. 2015-09-22 16:36:33 -07:00
Steve Dower bc25032c92 Issue #25091: Increases font size of the installer. 2015-09-22 16:36:29 -07:00
Steve Dower 2495faf8fc Closes #25085 and #25086: Exclude distutils and test directories from embeddable distro. 2015-09-22 15:03:54 -07:00
Eric V. Smith 608adf9c82 Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter. 2015-09-20 15:09:15 -04:00
Steve Dower a004c54f94 Issue #25071: Windows installer should not require TargetDir parameter when installing quietly 2015-09-11 11:31:07 -07:00
Steve Dower 6695c2e356 Merge from 3.5.0 2015-09-11 11:27:45 -07:00
Steve Dower 76b7133f58 Issue #25071: Windows installer should not require TargetDir parameter when installing quietly 2015-09-11 10:56:59 -07:00
Steve Dower 988433fc93 Fixes handling of read-only files when creating zip package. 2015-09-09 19:33:06 -07:00
Steve Dower ae69de658e Fixes handling of read-only files when creating zip package. 2015-09-09 19:32:45 -07:00
Larry Hastings 334b4a3403 Merge from 3.5. 2015-09-09 07:00:54 -07:00
Larry Hastings ded28e3863 Merge Python 3.5.0rc4 back to hg.python.org. 2015-09-09 06:52:38 -07:00
Steve Dower fcbe1df4af Issue #25027: Reverts partial-static build options and adds vcruntime140.dll to Windows installation. 2015-09-08 21:39:01 -07:00
Steve Dower 6727b3c235 Issue #24910: Windows MSIs now have unique display names. 2015-09-05 12:47:22 -07:00
Steve Dower f3f2d372e8 Issue #24910: Windows MSIs now have unique display names. 2015-09-05 12:47:06 -07:00
Serhiy Storchaka 8fc0d918eb Merge 3.5 2015-09-04 08:34:57 +03:00
Zachary Ware e74fe18ebb Allow PCbuild\rt.bat to accept unlimited arguments for regrtest.
This makes it possible to pass more than 4 tests by name through
Tools\buildbot\test.bat
2015-09-03 23:43:37 -05:00
Steve Dower ab2a34abb7 Issue #24847: Removes vcruntime140.dll dependency from Tcl/Tk. 2015-08-19 08:39:12 -07:00
Steve Dower dc77565990 Removes --clean-only option from buildbots. 2015-08-19 08:04:31 -07:00
Steve Dower 807404921a Removes --clean-only option from buildbots. 2015-08-18 20:02:07 -07:00
Steve Dower 77861e17f1 Issue #24847: Fixes Tix revision number and reverts fix for the wrong revision.
Triggers clean on buildbots.
2015-08-18 19:30:13 -07:00
Steve Dower e7e69391e3 Issue #24847: Fixes Tix revision number and reverts fix for the wrong revision.
Triggers clean on buildbots.
2015-08-18 19:29:51 -07:00
Steve Dower 572183cce3 Merge with 3.5 2015-08-18 16:01:25 -07:00
Steve Dower 9f0cbbc376 Issue #24847: Removes vcruntime140.dll dependency from Tcl/Tk. 2015-08-18 16:00:56 -07:00
Steve Dower 711dc14777 Merge with 3.5 2015-08-15 14:38:29 -07:00
Steve Dower e6894d6256 Enables building compressed Windows test builds with --pack option. 2015-08-15 14:38:16 -07:00
Steve Dower 2dc5fd2fa8 Issue #24847: Fixes tcltk installer layout of VC runtime DLL 2015-08-11 18:51:00 -07:00
Steve Dower 9b8a1fa023 Issue #24847: Fixes tcltk installer layout of VC runtime DLL 2015-08-11 18:49:13 -07:00
Steve Dower 1065278f23 Merge with 3.5 2015-08-05 11:35:36 -07:00
Steve Dower 315b748cfc Fixes make_zip.py to create temporary .pyc files in a separate directory. This avoids polluting tests that run code from TEMP. 2015-08-05 11:34:50 -07:00
Steve Dower ec3e16a0f4 Puts compiled pyc files into embedded library ZIP file instead of sources. 2015-08-04 16:02:55 -07:00
Steve Dower 08b1817fd8 Puts compiled pyc files into embedded library ZIP file instead of sources. 2015-08-04 16:02:40 -07:00
Steve Dower ac5e87caff Issue #24771: Adds vcruntime DLL to tcltk package 2015-08-03 16:21:39 -07:00
Steve Dower 132aecb142 Issue #24771: Adds vcruntime DLL to tcltk package 2015-08-03 16:21:12 -07:00
Steve Dower c21bfa8095 Updates get_wix.py for newer version of WiX. 2015-07-20 19:53:26 -07:00
Steve Dower c79dbc7941 Updates get_wix.py for newer version of WiX. 2015-07-20 19:52:15 -07:00
Steve Dower 7066cd7d54 Merge with 3.5 2015-07-18 09:29:03 -07:00
Steve Dower 61ca207090 Issue #24642: Improves help text displayed in the Windows installer. 2015-07-18 09:28:41 -07:00
Steve Dower 2434aa24e0 Adds support for an unattend.xml file to control the Windows installer options. 2015-07-18 09:28:19 -07:00
Steve Dower a3d03ec6b1 Adds option to only install the launcher. 2015-07-18 09:27:52 -07:00
Steve Dower c959769297 Merge with 3.5 2015-07-16 16:34:09 -07:00
Steve Dower 2237bdc595 Adds option to install launcher for all users even when installing Python just-for-me. This helps mitigate issues when the incompatible Python 3.4 launcher is installed.
Enables installer builds with the the text marker.
Allows simple installs to include a custom description.
2015-07-16 16:33:55 -07:00
Steve Dower 99168adec0 Fixes installer rebuild, snapshot versioning, and the README.txt file. 2015-07-08 22:44:52 -07:00
Steve Dower b85b427507 Fixes installer rebuild, snapshot versioning, and the README.txt file. 2015-07-08 22:43:48 -07:00
Steve Dower 67b9ab53c9 Issue #24585: Enables build-to-build upgrades that preserve settings.
Rather than using Burn "Persisted" variables we now add registry keys for each added feature. These can be detected by the installer regardless of which version installed them, and we use this for Modify and Upgrade. In particular, Upgrades can't access the Persisted variables, but can find well-known registry keys.
There are also some changes to the bootstrap app to properly handle upgrades.
Finally, a few minor improvements to the Windows build to keep things tidier.
2015-07-08 20:19:07 -07:00
Steve Dower 494374922c Issue #24585: Enables build-to-build upgrades that preserve settings.
Rather than using Burn "Persisted" variables we now add registry keys for each added feature. These can be detected by the installer regardless of which version installed them, and we use this for Modify and Upgrade. In particular, Upgrades can't access the Persisted variables, but can find well-known registry keys.
There are also some changes to the bootstrap app to properly handle upgrades.
Finally, a few minor improvements to the Windows build to keep things tidier.
2015-07-08 20:18:44 -07:00
Steve Dower a327cffd39 Closes 24584: Windows installer incorrectly detects CRT version on Windows 10 2015-07-07 20:47:49 -07:00
Steve Dower b257eed043 Closes 24584: Windows installer incorrectly detects CRT version on Windows 10 2015-07-07 20:47:28 -07:00
Steve Dower 32f64d03e4 Fixes rebuild of strings for Windows installer. 2015-07-05 07:24:47 -07:00
Steve Dower d423396394 Fixes rebuild of strings for Windows installer. 2015-07-05 07:24:17 -07:00
Steve Dower 7bcf919f47 Ignore user environment/site-packages for ensurepip and compile_all
Remove build condition to prevent old strings hanging around
Add -h option to build.bat
2015-07-04 11:48:59 -07:00
Steve Dower 06606e7165 Ignore user environment/site-packages for ensurepip and compile_all
Remove build condition to prevent old strings hanging around
Add -h option to build.bat
2015-07-04 11:48:37 -07:00
Yury Selivanov bb215e2300 Merge 3.5 (Issue #19235) 2015-07-03 01:10:11 -04:00
Yury Selivanov f488fb422a Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. 2015-07-03 01:04:23 -04:00
Benjamin Peterson b5048d3938 merge 3.5 2015-06-27 15:46:31 -05:00
Benjamin Peterson 4801383c29 upgrade to Unicode 8.0.0 2015-06-27 15:45:56 -05:00
Steve Dower 81fdd0b868 Issue 24476: Statically links vcruntime140.dll and removes it from the installer 2015-06-19 13:08:58 -07:00
Steve Dower 6d58f8dc52 Issue 24476: Statically links vcruntime140.dll and removes it from the installer 2015-06-19 10:49:04 -07:00
Zachary Ware 72dd522761 Remove deprecated buildbot scripts 2015-06-17 10:09:24 -05:00
Zachary Ware 4ab4ac8e03 Merge 3.4 2015-06-17 10:08:44 -05:00
Zachary Ware 9fe164364a Deprecate unused scripts in Tools/buildbot.
I would just outright delete them, but the readme in PCbuild recommended
their use, so I figure it would be nice to leave them there for a while.
2015-06-16 10:56:14 -05:00
Zachary Ware 785273cd84 Merge forward extras beyond #21907 backport. 2015-06-10 00:43:20 -05:00
Zachary Ware 6250df81bf Clean up/refactor the batch scripts used for building on Windows.
This is mostly a backport of issue #21907, but also includes a few
extras necessary to make the bulidbot scripts as thin as possible.
2015-06-09 23:16:52 -05:00
Steve Dower 9901856ac4 Issue 24385: Adds "--as-flags=--32" when generating 32-bit MinGW library. 2015-06-08 09:55:43 -07:00
Steve Dower 773490099f Issue #24317: Makes Customize page default to installing per-user, and switching to All Users enable CompileAll. 2015-05-31 16:39:46 -07:00
Steve Dower 83f34aa4f8 Issue #24293: Adds mapping from explicit colours to system colours to correctly handle user themes. 2015-05-31 16:39:46 -07:00
Steve Dower 44e625860b Fixes text in installer. 2015-05-28 10:28:40 -07:00
Serhiy Storchaka 3028c955fa Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs. 2015-05-27 21:31:33 +03:00
Steve Dower c30a6ce59d Issue #24293: Fixes installer colors to use system settings throughout. 2015-05-26 20:46:11 -07:00
Steve Dower 3805019c58 Exclude _testmultiphase.pyd from embeddable ZIP file. 2015-05-23 18:08:55 -07:00
Steve Dower 2446e2e76d Prevents attempt to sign ZIP file when building embeddable version. 2015-05-23 17:52:20 -07:00
Steve Dower 42a059b632 Issue #24268: Adds PCBuild project to build _testmultiphase module. 2015-05-23 17:51:54 -07:00
Steve Dower bd0d91e706 Removes lingering references to RAR now that make_zip.py actually makes a ZIP 2015-05-22 16:22:27 -07:00
Steve Dower 4a7fe7e397 Issue #23955: Add pyvenv.cfg option to suppress registry/environment lookup for generating sys.path.
Also cleans up and secures getpathp.c
2015-05-22 15:10:10 -07:00
Zachary Ware 7dc9dea778 Issue #20035: Reimplement tkinter._fix module as a C function.
The new private C function makes no permanent changes to the environment
and is #ifdef'd out on non-Windows platforms.
2015-05-22 11:36:53 -05:00
Serhiy Storchaka ba9ac5b5c4 Issue #16261: Converted some bare except statements to except statements
with specified exception type.  Original patch by Ramchandra Apte.
2015-05-20 10:33:40 +03:00
Steve Dower 42b50d187f Fixes default per-user install precompiling the standard library. 2015-05-15 12:10:53 -07:00
Yury Selivanov 7544508f02 PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
Larry Hastings 38337d1e15 Issue #24000: Improved Argument Clinic's mapping of converters to legacy
"format units".  Updated the documentation to match.
2015-05-07 23:30:09 -07:00
Benjamin Peterson 025e9ebd0a PEP 448: additional unpacking generalizations (closes #2292)
Patch by Neil Girdhar.
2015-05-05 20:16:41 -04:00