summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231) ↵Steve Dower2020-01-311-2/+10
| | | | | | (GH-18233)
* [3.6] bpo-35133: Fix mistakes when concatenate string literals on different ↵Serhiy Storchaka2018-11-051-2/+2
| | | | | | | | | | | lines. (GH-10284) (GH-10335) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings.. (cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d)
* bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760)Miss Islington (bot)2018-10-201-3/+9
| | | | | | Set SRCDIR as the current directory for git. (cherry picked from commit aa95bfb5fee366aa58c90b7e1c77fc7e183dbf3a) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-34989: python-gdb.py: fix current_line_num() (GH-9889)Miss Islington (bot)2018-10-151-13/+33
| | | | | | | | | | | | | | | | | python-gdb.py now handles errors on computing the line number of a Python frame. Changes: * PyFrameObjectPtr.current_line_num() now catchs any Exception on calling addr2line(), instead of failing with a surprising "<class 'TypeError'> 'FakeRepr' object is not subscriptable" error. * All callers of current_line_num() now handle current_line_num() returning None. * PyFrameObjectPtr.current_line() now also catchs IndexError on getting a line from the Python source file. (cherry picked from commit 2e438cc2554495b28480a3ffe5cdf41b6ab823a0) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.6] bpo-34670: Add TLS 1.3 post handshake auth (GH-9460) (GH-9507)Christian Heimes2018-09-231-4/+4
| | | | | | | | | | | | | | | | Add SSLContext.post_handshake_auth and SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake authentication. Signed-off-by: Christian Heimes <christian@python.org>q https://bugs.python.org/issue34670. (cherry picked from commit 9fb051f032c36b9f6086b79086b4d6b7755a3d70) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34670
* Fixes tests requiring extra environment values on Windows (GH-9463)Steve Dower2018-09-201-0/+3
|
* Fix Tools/gdb/libpython.pyMiss Islington (bot)2018-09-111-1/+1
| | | | Backport https://github.com/python/cpython/commit/11659d00b9185c8f02ea6b642fa475a80e21f1a9 into this change instead of leaving it a separate followup change.
* bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760)Christian Heimes2018-08-151-65/+98
| | | | | | | | | Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>
* Updated MSI README to mention dependency on .NET 3.5. (GH-8375)Miss Islington (bot)2018-07-291-0/+8
| | | | | (cherry picked from commit c536beedd50b0071208b4108ba9b48a36ffced79) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* bpo-34166: Fix warnings in Tools/msgfmt.py. (GH-8367)Miss Islington (bot)2018-07-211-3/+5
| | | | | (cherry picked from commit a692efe4733f98831cb51a9683877b152f754d14) Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
* bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710) ↵Victor Stinner2018-06-151-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-7711) * bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692) python-gdb now catchs ValueError on read_var(): when Python has no debug symbols for example. (cherry picked from commit 019d33b7a447e78057842332fb5d3bad01922122) * bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693) python-gdb now catchs UnicodeDecodeError exceptions when calling string(). (cherry picked from commit d22fc0bc7de7882da204abe50884bbde2da4f9e7) * bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754) When Python is built with the intel control-flow protection flags, -mcet -fcf-protection, gdb is not able to read the stack without actually jumping inside the function. This means an extra 'next' command is required to make the $pc (program counter) enter the function and make the stack of the function exposed to gdb. (cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287) (cherry picked from commit ca4cb8492c643d1fcac2c5b749595ad5377673ab)
* pypi.python.org -> pypi.org (GH-7613) (GH-7615)Miss Islington (bot)2018-06-111-1/+1
| | | | | (cherry picked from commit 9d6d06e8065d45f375f4a80e2d7e13b032da1f5b) Co-authored-by: Ned Deily <nad@python.org>
* remove hg support from patchcheck (GH-7440)Miss Islington (bot)2018-06-061-21/+3
| | | | | (cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)Steve Dower2018-05-171-2/+12
|
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Miss Islington (bot)2018-04-191-5/+9
| | | | | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions. (cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵Miss Islington (bot)2018-04-091-19/+11
| | | | | | | | script. (GH-6259) Based on patch by Oleg Krasnikov. (cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.6] bpo-33127: Compatibility patch for LibreSSL 2.7.0 (GH-6210) (GH-6214)Christian Heimes2018-03-241-1/+2
| | | | | | | | | | | | | LibreSSL 2.7 introduced OpenSSL 1.1.0 API. The ssl module now detects LibreSSL 2.7 and only provides API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7. Documentation updates and fixes for failing tests will be provided in another patch set. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 4ca0739c9d97ac7cd45499e0d31be68dc659d0e1) Co-authored-by: Christian Heimes <christian@python.org>
* [3.6] bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ ↵Miss Islington (bot)2018-03-141-8/+20
| | | | | | | | | | | | (GH-5772) (#6104) Creating backup files with ~ suffix can be undesirable in some environment, such as when building RPM packages. Instead of requiring the user to remove those files manually, option -n was added, that simply disables this feature. -n was selected because 2to3 has the same option with this behavior. (cherry picked from commit 5affd5c29eb1493cb31ef3cfdde15538ac134689) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Miss Islington (bot)2018-02-261-4/+11
| | | | | | | (GH-4745) (cherry picked from commit eee72d4778a5513038edd5236cdd87ccce2bc60a) Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
* [3.6] bpo-32588 Move _distutils_findvs into its own module (GH-5227) (#5228)Steve Dower2018-01-181-1/+1
|
* Allows non-critical upload steps to fail (GH-4742) (#4743)Miss Islington (bot)2017-12-061-3/+3
| | | (cherry picked from commit 9ab11b3a029fba36c1a7e869be87fb4f31ebcf24)
* bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)Victor Stinner2017-11-281-1/+1
| | | | | | | | | | * turtledemo: wait until macOS osascript command completes to not create a zombie process * Tools/scripts/treesync.py: declare 'default_answer' and 'create_files' as globals to modify them with the command line arguments. Previously, -y, -n, -f and -a options had no effect. flake8 warning: "F841 local variable 'p' is assigned to but never used".
* bpo-31944: Fixes build and Modify button (GH-4278) (#4284)Miss Islington (bot)2017-11-052-3/+4
| | | (cherry picked from commit 0d2a9088d16826343344b04461c8be44b4008710)
* [3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic ↵Tal Einat2017-11-031-2/+2
| | | | | | | | | | | (GH-4230) (#4253) When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF GH-define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name.. (cherry picked from commit 4f57409a2f7bdf8fb559cddc7c6533ca2c471c67)
* Update multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)Miss Islington (bot)2017-11-021-3/+2
| | | (cherry picked from commit 0d2c645d41eee4ec7549c86ccc23970b692a48b0)
* bpo-30722: Make redemo work with Python 3.6+ (GH-2311)Miss Islington (bot)2017-10-231-2/+1
| | | (cherry picked from commit 62adc55aff0b78447568f73bd1abc610d2784bf8)
* [3.6] bpo-31523: Reliability improvements to the Windows build files ↵Miss Islington (bot)2017-10-054-26/+55
| | | | | (GH-3900) (#3902) (cherry picked from commit 2084b30e540d88b9fc752c5bdcc2f24334af4f2b)
* [3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)Miss Islington (bot)2017-10-021-3/+3
| | | (cherry picked from commit efb560eee28b6b2418e1231573ca62574d6dc07b)
* [3.6] bpo-31536: Avoid wholesale rebuild after `make regen-all` (GH-3678) ↵Miss Islington (bot)2017-09-281-0/+28
| | | | | | (#3797) bpo-31536: Avoid wholesale rebuild after `make regen-all`
* [3.6] Update multissl test helper (GH-3349) (#3415)Christian Heimes2017-09-072-241/+430
| | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit d3b9f97)
* Add props file for nuget packages (#3410) (#3413)Steve Dower2017-09-075-6/+80
|
* [3.6] Update `make patchcheck` for blurb and NEWS.d (GH-3406)Miss Islington (bot)2017-09-071-5/+5
| | | (cherry picked from commit 1ba9469e9fdff0c52ba19b1e13a9c4b7235fc9eb)
* [3.6] bpo-31340: Change to building with MSVC v141 (included with Visual ↵Steve Dower2017-09-062-2/+24
| | | | Studio 2017) (GH-3311) (#3386)
* [3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) ↵Łukasz Langa2017-08-221-9/+11
| | | | | | | | | | | | | | | (#3192) PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on non-debug shared builds. This breaks the ability to use py-bt, py-up, and a few other Python-specific gdb integrations. This patch fixes the problem by only looking for _PyEval_EvalFrameDefault frames. test_gdb passes on both a debug and a non-debug build. Original patch by Bruno "Polaco" Penteado. (cherry picked from commit 5fe59f8e3a0a56a155c18f9d581205ec533764b6)
* [3.6] bpo-31221: patchcheck ignores external libraries (#3109) (#3116)Victor Stinner2017-08-171-2/+21
| | | | | | | | | | | | | | | | | | | | | | * bpo-31221: patchcheck ignores external libraries (#3109) Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc (cherry picked from commit 4a347ce426fe7381885703d9074d7a6b3aeb2f2b) * Exclude also Modules/_ctypes/libffi on Python 3.6
* Revert "[3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python ↵Victor Stinner2017-08-161-4/+2
| | | | | extension (GH-2803) (#3090)" (#3101) This reverts commit 09b77165e3fffa7b7ff160ad06042cdcfa004bf5.
* [3.6] bpo-30983: eval frame rename in pep 0523 broke gdb's python extension ↵Łukasz Langa2017-08-141-2/+4
| | | | | | | | | | (GH-2803) (#3090) pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame. Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly. This patch fixes that. Tested locally on python3.6 (cherry picked from commit 2e0f4db114)
* Fix build batch files (#2750) (#2897)Steve Dower2017-07-266-21/+49
| | | | | | | | | * 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.
* [3.6] bpo-30450: Improved logic for obtaining dependencies (#2751)Steve Dower2017-07-192-23/+4
| | | | | | | | | 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
* [3.6] Check the whitespace of pull requests on Travis (GH-2367) (GH-2386)Brett Cannon2017-06-251-2/+32
| | | (cherry picked from commit 70cb1875bb5343e31d7268f4b2d231a5fecdf989)
* bpo-30687: Fixes build scripts to find msbuild.exe and stop relying on ↵Steve Dower2017-06-194-22/+25
| | | | | | 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.
* Revert "bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)" (#2246)Victor Stinner2017-06-161-11/+2
| | | This reverts commit e064d4dfeda09fd206653697b70b434e98cc1b57.
* bpo-30450: Pull Windows dependencies from GitHub rather than svn (GH-1783) ↵Zachary Ware2017-06-161-19/+99
| | | | | | | | | (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 51599e2bdd10ab77212a7cbb41a13ea70ee13da8)
* bpo-30673: test.bat: add -t option (timeout) (#2211) (#2225)Victor Stinner2017-06-151-2/+11
| | | (cherry picked from commit 258bfc462b1e58689b43f662a10e44ece3a10bef)
* [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)Zachary Ware2017-06-1011-657/+657
| | | Also updates checked-in line endings on some files
* [3.6] bpo-30345: Update test_gdb.py and python-gdb.py from master (#1549)Victor Stinner2017-05-121-12/+52
| | | | | | | | | | | | | | * python-gdb.py supports method-wrapper bpo-29367: python-gdb.py now supports also method-wrapper (wrapperobject) objects. (cherry picked from commit 611083331d534481ca7956a376e38fb0e9ef3854) * Update and enhance python-gdb.py bpo-29259: Detect PyCFunction is the current frame, not only in the older frame.
* [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461)Victor Stinner2017-05-041-129/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 a5c62a8e9f0de6c4133825a5710984a3cd5e102b) * bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (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 b109a1d3360fc4bb87b9887264e3634632d392ca)
* [3.6] bpo-30109: Fix reindent.py (GH-1207) (GH-1208)Mariatta2017-04-201-1/+5
| | | | Skip the file if it has bad encoding. (cherry picked from commit 58f3c9dc8f5626abe09ac9738c34f6ba99ce2972)
* bpo-29798: Handle git worktree in patchcheck (#1058) (#1060)Nick Coghlan2017-04-091-1/+1
| | | | | The original attempted fix missed an `isdir()` call in `get_base_branch()`. (cherry picked from commit 2abfdf5a81383d3b1ed6b7321903a9a168c373c5)
* Takes vcruntime140.dll from the correct source. (#684)Steve Dower2017-03-162-11/+6
|