summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 ↵Steve Dower2019-09-101-1/+1
| | | | toolset installed (GH-15849)
* closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. ↵Miss Islington (bot)2019-08-281-1/+2
| | | | | | | | | | | | (GH-15560) https://bugs.python.org/issue37965 https://bugs.python.org/issue37965 Automerge-Triggered-By: @benjaminp (cherry picked from commit 55aabee07501e1468082b3237620e4ecd75c5da6) Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)Miss Islington (bot)2019-07-011-0/+3
| | | | | | | | | | | | | | bdist_wininst depends on MBCS codec, unavailable on non-Windows, and bdist_wininst have not worked since at least Python 3.2, possibly never on Python 3. Here we document that bdist_wininst is only supported on Windows, and we mark it unsupported otherwise to skip tests. Distributors of Python 3 can now safely drop the bdist_wininst .exe files without the need to skip bdist_wininst related tests. (cherry picked from commit 72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) ↵Miss Islington (bot)2019-04-252-2/+7
| | | | | | | | | | | | (GH-12948) bpo-28552, bpo-7774: Fix distutils.sysconfig if sys.executable is None or an empty string: use os.getcwd() to initialize project_base. Fix also the distutils build command: don't use sys.executable if it's evaluated as false (None or empty string). (cherry picked from commit 0ef8c157e9195df0115c54ba875a5efb92ac22fb) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862)Victor Stinner2019-04-172-17/+69
| | | | | | | | | | | | | | | | | | | | | | | | | * bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) shutil.which() and distutils.spawn.find_executable() now use os.confstr("CS_PATH") if available instead of os.defpath, if the PATH environment variable is not set. Don't use os.confstr("CS_PATH") nor os.defpath if the PATH environment variable is set to an empty string. Changes: * find_executable() now starts by checking for the executable in the current working directly case. Add an explicit "if not path: return None". * Add tests for PATH='' (empty string), PATH=':' and for PATHEXT. (cherry picked from commit 228a3c99bdb2d02771bead66a0beabafad3a90d3) * bpo-35755: Remove current directory from posixpath.defpath (GH-11586) Document the change in a NEWS entry of the Security category. (cherry picked from commit 2c4c02f8a876fcf084575dcaf857a0236c81261a)
* bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)Miss Islington (bot)2019-04-101-0/+3
| | | | | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler(). (cherry picked from commit a9bd8925c7fa50dd3cfab125b824ec192133ef49) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Miss Islington (bot)2019-03-273-2/+18
| | | | | | | (GH-10605) (cherry picked from commit d5a5a33f12b60129d57f9b423b77d2fcba506834) Co-authored-by: Philipp A <flying-sheep@web.de>
* bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)Victor Stinner2019-03-181-13/+79
| | | | | | The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler(). (cherry picked from commit 72c7b372cf145fded93a9a776acc742a60090f95)
* bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348)Victor Stinner2019-03-152-7/+14
| | | | | | | | | | Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the CFLAGS environment variable is defined, don't override CFLAGS variable with the OPT variable anymore. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> (cherry picked from commit 86082c22d23285995a32aabb491527c9f5629556)
* bpo-35198 Fix C++ extension compilation on AIX (GH-10437)Miss Islington (bot)2019-03-041-1/+9
| | | | | | | | | | | | | | | | | For C++ extensions, distutils tries to replace the C compiler with the C++ compiler, but it assumes that C compiler is the first element after any environment variables set. On AIX, linking goes through ld_so_aix, so it is the first element and the compiler is the next element. Thus the replacement is faulty: ld_so_aix gcc ... -> g++ gcc ... Also, it assumed that self.compiler_cxx had only 1 element or that there were the same number of elements as the linker has and in the same order. This might not be the case, so instead concatenate everything together. (cherry picked from commit 800d5cd75025876d79ab05980925a05d8e36b63d) Co-authored-by: Kevin Adler <kadler@us.ibm.com>
* bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Miss Islington (bot)2019-02-053-10/+26
| | | | | (cherry picked from commit 85e102a2b090dd693d0801ae2edb9660cfa0f281) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)Miss Islington (bot)2019-01-201-0/+1
| | | | | (cherry picked from commit b2dc4a3313c236fedbd6df664722cd47f3d91a72) Co-authored-by: Marc Schlaich <marc.schlaich@googlemail.com>
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)Miss Islington (bot)2018-12-182-11/+32
| | | | | | | | check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case. (cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Miss Islington (bot)2018-12-054-10/+25
| | | | | (cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35133: Fix mistakes when concatenate string literals on different lines. ↵Miss Islington (bot)2018-11-055-7/+7
| | | | | | | | | | | | (GH-10284) 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) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)Miss Islington (bot)2018-10-271-32/+32
| | | | | (cherry picked from commit 53125a53f483db0af76249b6af6efcdc200eb421) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)Serhiy Storchaka2018-09-232-25/+32
| | | | | | | | Use "backslashreplace" instead of "unicode-escape". It is not implementation depended and escapes only non-encodable characters. Also simplify the code. (cherry picked from commit 4b860fd)
* Fixes tests requiring extra environment values on Windows (GH-9462)Steve Dower2018-09-202-0/+5
|
* bpo-34421 avoid unicode error in distutils logging (GH-8799)Miss Islington (bot)2018-09-081-1/+4
| | | | | | | This caused installation errors in some cases on Windows. Patch by Julien Malard. (cherry picked from commit 0afada163c7ef25c3a9d46ed445481fb69f2ecaf) Co-authored-by: Julien Malard <julien.malard@mail.mcgill.ca>
* bpo-34530: Fix distutils find_executable() (GH-9049)Miss Islington (bot)2018-09-042-3/+48
| | | | | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set. (cherry picked from commit 39487196c87e28128ea907a0d9b8a88ba53f68d5) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. ↵Steve Dower2018-07-261-2/+2
| | | | (GH-8464)
* Improve error message for "setup.py upload" without dist files (GH-21060)Miss Islington (bot)2018-02-191-1/+2
| | | | | (cherry picked from commit 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c) Co-authored-by: Éric Araujo <merwok@netwok.org>
* bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)Bo Bayles2018-01-262-2/+26
| | | | Patch by Bo Bayles.
* bpo-32588: Move _findvs into its own module and add missing _queue module to ↵Steve Dower2018-01-182-7/+6
| | | | installer (#5227)
* bpo-32302: Fix distutils bdist_wininst for CRT v142 (#4851)Victor Stinner2017-12-141-2/+2
| | | CRT v142 is binary compatible with CRT v140.
* bpo-19610: Warn if distutils is provided something other than a list to some ↵Neil Schemenauer2017-12-052-36/+58
| | | | | | | | | | | | | | | fields (#4685) * Rather than raise TypeError, warn and call list() on the value. * Fix tests, revise NEWS and whatsnew text. * Revise documentation, a string is okay as well. * Ensure 'requires' and 'obsoletes' are real lists. * Test that requires and obsoletes are turned to lists.
* bpo-32155: Revert distutils.config change (#4618)Victor Stinner2017-11-281-3/+2
| | | | | Revert distutils changes of the commit 696b501cd11dc429a0f661adeb598bfaf89e4112 and remove the realm variable.
* bpo-32155: Bugfixes found by flake8 F841 warnings (#4608)Victor Stinner2017-11-281-2/+2
| | | | | | | | | | | * distutils.config: Use the PyPIRCCommand.realm attribute if set * 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-19610: setup() now raises TypeError for invalid types (GH-4519)Berker Peksag2017-11-232-0/+70
| | | | | | The Distribution class now explicitly raises an exception when 'classifiers', 'keywords' and 'platforms' fields are not specified as a list.
* bpo-29185: Fix `test_distutils` failures on Android (GH-4438)xdegaye2017-11-182-2/+10
| | | | * Run gzip with separate command line options (Android understands '-f9' as the name of a file). * Creation of a hard link is controled by SELinux on Android.
* Replace KB unit with KiB (#4293)Victor Stinner2017-11-081-2/+2
| | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB.
* fixes bpo-31866: remove code pertaining to AtheOS support (#4115)Benjamin Peterson2017-10-261-18/+2
| | | | We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish.
* remove support for BSD/OS (closes bpo-31624) (#3812)Benjamin Peterson2017-09-291-2/+2
|
* bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)Stefan Grönke2017-09-251-1/+1
|
* bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632)Steve Dower2017-09-072-29/+94
|
* Remove all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-065-23/+4
| | | It was mostly removed long ago.
* bpo-31340: Change to building with MSVC v141 (included with Visual Studio ↵Steve Dower2017-09-061-9/+13
| | | | 2017) (#3311)
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-043-22/+7
| | | See PEP 11.
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-181-1/+1
| | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
* bpo-30273: update distutils.sysconfig for venv's created from Python (#1515)Jeremy Kloth2017-05-091-5/+2
| | | compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
* bpo-30273: Update sysconfig (#1464)Victor Stinner2017-05-041-1/+1
| | | | | | | | | | 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.
* bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380)Victor Stinner2017-05-021-18/+18
| | | | | | | BuildExtTestCase of test_distutils now uses support.temp_cwd() in setUp() to remove files created in the current working in all BuildExtTestCase unit tests, not only test_build_ext(). Move also tearDown() just after setUp().
* bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278)Victor Stinner2017-04-251-0/+7
| | | | | test_build_ext() of test_distutils now uses support.temp_cwd() to prevent the creation of a pdb file in the current working directory on Windows.
* bpo-11913: Add README.rst to the distutils standard READMEs list (#563)Ryan Gonzalez2017-04-141-1/+1
|
* Issue #29218: Remove unused install_misc commandBerker Peksag2017-02-011-31/+0
| | | | | | It has been documented as unused since 6c6844a2fa30 (2000-05-25) Patch by Eric N. Vander Weele.
* Issue #28987: Merge doc and comment fixes from 3.6Martin Panter2016-12-181-1/+1
|\
| * Merge spelling and grammar from 3.5Martin Panter2016-12-181-1/+1
| |\
| | * Fix spelling and grammar in code comments and documentationMartin Panter2016-12-181-1/+1
| | |
* | | Issue #26071: Fixes preprocessor definition and rebuilds ↵Steve Dower2016-12-132-0/+0
|\ \ \ | |/ / | | | | | | wininst-14.0[-amd64].exe
| * | Issue #26071: Fixes preprocessor definition and rebuilds ↵Steve Dower2016-12-132-0/+0
| |\ \ | | |/ | | | | | | wininst-14.0[-amd64].exe