summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)Miro Hrončok2019-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.
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Paul Monson2019-06-123-0/+8
|
* bpo-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)Marcin Niemira2019-06-081-4/+1
|
* Fix typos in docs and docstrings (GH-13745)Xtreak2019-06-021-1/+1
|
* bpo-21536: On Cygwin, C extensions must be linked with libpython (GH-13549)E. M. Bray2019-05-241-12/+24
| | | | | | | | | | It is also possible to link against a library or executable with a statically linked libpython, but not both with the same DLL. In fact building a statically linked python is currently broken on Cygwin for other (related) reasons. The same problem applies to other POSIX-like layers over Windows (MinGW, MSYS) but Python's build system does not seem to attempt to support those platforms at the moment.
* bpo-21536: On Android, C extensions are linked to libpython (GH-12989)xdegaye2019-04-291-0/+15
|
* bpo-35920: Windows 10 ARM32 platform support (GH-11774)Paul Monson2019-04-254-6/+29
|
* bpo-21536: C extensions are no longer linked to libpython (GH-12946)Victor Stinner2019-04-251-17/+2
| | | | | | | | | | | | | | On Unix, C extensions are no longer linked to libpython. It is now possible to load a C extension built using a shared library Python with a statically linked Python. When Python is embedded, libpython must not be loaded with RTLD_LOCAL, but RTLD_GLOBAL instead. Previously, using RTLD_LOCAL, it was already not possible to load C extensions which were not linked to libpython, like C extensions of the standard library built by the "*shared*" section of Modules/Setup. distutils, python-config and python-config.py have been modified.
* bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875)Victor Stinner2019-04-252-2/+7
| | | | | | | 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).
* bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)Victor Stinner2019-04-171-1/+1
|
* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)Victor Stinner2019-04-172-17/+69
| | | | | | | | | | | | | | | | 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 to mimick Unix 'which' command behavior. 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.
* bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)Victor Stinner2019-04-101-0/+3
| | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler().
* fix code styling (GH-12737)Inada Naoki2019-04-091-1/+1
|
* bpo-35416: fix potential resource warnings in distutils (GH-10918)Mickaël Schoentgen2019-04-083-39/+43
|
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-273-2/+18
| | | | | | (GH-10605)
* bpo-36235: Enhance distutils test_customize_compiler() (GH-12403)Victor Stinner2019-03-181-13/+79
| | | | The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler().
* bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236)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>
* bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)Anthony Sottile2019-03-122-1/+2
|
* bpo-35198 Fix C++ extension compilation on AIX (GH-10437)Kevin Adler2019-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.
* bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Steve Dower2019-02-053-10/+26
|
* bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)Marc Schlaich2019-01-201-0/+1
|
* Distutils no longer needs to remain compatible with 2.3 (GH-11423)Miro Hrončok2019-01-091-2/+0
|
* bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)Michael Felt2018-12-282-1/+6
| | | | | | | Command line options for the xlc compiler behave differently from gcc and clang, so skip this test case for now when xlc is the compiler. Patch by aixtools (Michael Felt)
* bpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921)Serhiy Storchaka2018-12-205-69/+65
|
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)Victor Stinner2018-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.
* bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)Paul Ganssle2018-12-171-8/+2
| | | | | | platform.dist() is deprecated and slated for removal in Python 3.8. The upload command itself should also not be used to upload to PyPI, but while it continues to exist it should not use deprecated functions.
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Serhiy Storchaka2018-12-054-10/+25
|
* bpo-35133: Fix mistakes when concatenate string literals on different lines. ↵Serhiy Storchaka2018-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.
* bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095)Steve Dower2018-10-271-32/+32
|
* Use in-memory streams instead of NamedTemporaryFile. (GH-9508)Serhiy Storchaka2018-09-231-4/+6
|
* bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126)Serhiy Storchaka2018-09-232-24/+29
| | | | | | | Use "backslashreplace" instead of "unicode-escape". It is not implementation depended and escapes only non-encodable characters. Also simplify the code.
* bpo-34011: Fixes missing venv files and other tests (GH-9458)Steve Dower2018-09-202-0/+5
|
* bpo-34605: Replace "pliant children" with "helpers" (GH-9195)Victor Stinner2018-09-111-1/+1
| | | | | | | | | In distutils.command.install, replace "pliant children" (previously, it was "pliant slaves") with "helpers". <!-- issue-number: [bpo-34605](https://www.bugs.python.org/issue34605) --> https://bugs.python.org/issue34605 <!-- /issue-number -->
* bpo-34421 avoid unicode error in distutils logging (GH-8799)Julien Malard2018-09-081-1/+4
| | | | This caused installation errors in some cases on Windows. Patch by Julien Malard.
* bpo-34605: childs => children (GH-9102)Victor Stinner2018-09-071-1/+1
|
* bpo-34605: Avoid master/slave terms (GH-9101)Victor Stinner2018-09-071-1/+1
| | | | | | | * Replace "master process" with "parent process" * Replace "master option mappings" with "main option mappings" * Replace "master pattern object" with "main pattern object" * ssl: replace "master" with "server" * And some other similar changes
* bpo-34530: Fix distutils find_executable() (GH-9049)Victor Stinner2018-09-042-3/+48
| | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set.
* bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. ↵Steve Dower2018-07-261-2/+2
| | | | (GH-8464)
* bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)Antoine Pitrou2018-07-161-3/+1
| | | | | bpo-32430: Rename Modules/Setup.dist to Modules/Setup Remove the necessity to copy the former manually to the latter when updating the local source tree.
* Improve error message for "setup.py upload" without dist files (#21060)Éric Araujo2018-02-181-1/+2
|
* 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.