summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
* bpo-47126: Update to canonical PEP URLs specified by PEP 676 (GH-32124)Hugo van Kemenade2022-03-301-1/+1
|
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-2/+2
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [codemod] Fix non-matching bracket pairs (GH-28473)Mohamad Mansour2021-09-211-1/+1
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45124: Remove the bdist_msi command (GH-28195)Hugo van Kemenade2021-09-072-751/+1
| | | | The bdist_msi command, deprecated in Python 3.9, is now removed. Use bdist_wheel (wheel packages) instead.
* bpo-41282: Fix broken `make install` (GH-26329)Petr Viktorin2021-05-241-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous commit broke a check in sysconfig when building cpython itself. This caused builds of the standard library modules to search a wrong location (the installed location rather than the source directory) for header files with the net effect that a ``make install`` incorrectly caused all extension modules to be rebuilt again and with incorrect include file paths. When building Python, we need two distinct "include" directories: - source .h files - install target for .h files Note that this doesn't matter except when building Python from source. Historically: - source .h files were in the distutils scheme under 'include' - the install directory was in the distutils.command.install scheme under 'headers' GH-24549 merged these; sysconfig is now the single source of truth and distutils is derived from it. This commit introduces a "secret" scheme path, 'headers', which contains the install target. It is only present when building Python. The distutils code uses it if present, and falls back to 'include'. Co-authored-by: Ned Deily <nad@python.org>
* Fix import of HTTPError (GH-22304)Sebastian Rittau2021-05-111-1/+2
| | | Import HTTPError from urllib.error instead of urllib.request.
* bpo-41282: (PEP 632) Load install schemes from sysconfig (GH-24549)Lumír 'Frenzy' Balhar2021-04-141-32/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this patch, `distutils.command.install.INSTALL_SCHEMES` are loaded from `sysconfig._INSTALL_SCHEMES`. The distutils module is deprecated and will be removed in 3.12 (PEP 632). This change makes the `sysconfig._INSTALL_SCHEMES` the single point of truth for install schemes while keeping `distutils.command.install.INSTALL_SCHEMES` exactly the same. If we, during the transition to the sysconfig, change something, this makes sure that it also propagates to distutils until the module gets removed. Moreover, as discussed [on Discourse], Linux distros need to patch distutils/sysconfig to make sure the packages will land in proper locations. This patch makes it easier because it leaves only one location where install schemes are defined which is much easier to patch/adjust. [on Discourse]: https://discuss.python.org/t/pep-632-deprecate-distutils-module/5134 The implementation is slightly different than the plan but I think it's the easiest way how to do it and it also makes the downstream patch simple, flexible and easy to maintain. It's also necessary to implement this before setuptools starts bundling the distutils module so the default install schemes stay in the standard library. The removed code from sysconfig does not seem to have any negative effect because, honestly, it seems that nothing actually uses the install schemes from sysconfig at all. There were many big changes in these modules where they were trying to include packaging in stdlib and then reverted that. Also, the test of distutils install command does not count with the different locations which is good evidence that the reason to have this piece of code is no longer valid. https://bugs.python.org/issue41282
* bpo-42802: Remove distutils bdist_wininst command (GH-24043)Victor Stinner2021-01-0813-383/+1
| | | | | | | | | | The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst
* bpo-31904: Fix site and sysconfig modules for VxWorks RTOS (GH-21821)pxinwr2020-12-201-5/+8
|
* bpo-41043: Escape literal part of the path for glob(). (GH-20994)Serhiy Storchaka2020-06-201-3/+3
|
* bpo-40698: Improve distutils upload hash digests (GH-20260)Christian Heimes2020-05-201-1/+21
| | | | | | | - Fix upload test on systems that blocks MD5 - Add SHA2-256 and Blake2b-256 digests based on new Warehous and twine specs. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40443: Remove unused imports in distutils (GH-19802)Victor Stinner2020-04-304-4/+1
|
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-101-2/+3
| | | | | | | | | | | | | Add --with-platlibdir option to the configure script: name of the platform-specific library directory, stored in the new sys.platlitdir attribute. It is used to build the path of platform-specific dynamic libraries and the path of the standard library. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit systems. Co-Authored-By: Jan Matějek <jmatejek@suse.com> Co-Authored-By: Matěj Cepl <mcepl@cepl.eu> Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
* bpo-39586: Deprecate distutils bdist_msi command (GH-18415)Hugo van Kemenade2020-02-101-1/+9
|
* bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names ↵Stefan Behnel2020-02-041-1/+9
| | | | | | | | | in distutils (GH-18150) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432
* bpo-38914 Do not require email field in setup.py. (GH-17388)Jürgen Gmach2019-12-231-5/+8
| | | | | | | | | | | | | | | | | | When checking `setup.py` and when the `author` field was provided, but the `author_email` field was missing, erroneously a warning message was displayed that the `author_email` field is required. The specs do not require the `author_email`field: https://packaging.python.org/specifications/core-metadata/#author The same is valid for `maintainer` and `maintainer_email`. The warning message has been adjusted. modified: Doc/distutils/examples.rst modified: Lib/distutils/command/check.py https://bugs.python.org/issue38914
* bpo-36302: Sort list of sources (GH-12341)Bernhard M. Wiedemann2019-08-011-1/+2
| | | | | | | | | | | | | | | | | | When building packages (e.g. for openSUSE Linux) (random) filesystem order of input files influences ordering of functions in the output .so files. Thus without the patch, builds (in disposable VMs) would usually differ. Without this patch, all callers have to be patched individually https://github.com/dugsong/libdnet/pull/42 https://github.com/sass/libsass-python/pull/212 https://github.com/tahoe-lafs/pycryptopp/pull/41 https://github.com/yt-project/yt/pull/2206 https://github.com/pyproj4/pyproj/pull/142 https://github.com/pytries/datrie/pull/49 https://github.com/Roche/pyreadstat/pull/37 but that is an infinite effort. See https://reproducible-builds.org/ for why this matters.
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Victor Stinner2019-07-051-1/+9
| | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead.
* 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-11122: fix hardcoded path checking for rpmbuild in bdist_rpm.py (GH-10594)Marcin Niemira2019-06-081-4/+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-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-251-1/+1
| | | | | | | 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).
* 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-271-1/+2
| | | | | | (GH-10605)
* bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Steve Dower2019-02-051-2/+3
|
* bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)Michael Felt2018-12-281-1/+0
| | | | | | | 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-203-39/+36
|
* 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-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-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-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
* 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-261-2/+0
| | | | Patch by Bo Bayles.
* bpo-32588: Move _findvs into its own module and add missing _queue module to ↵Steve Dower2018-01-181-5/+4
| | | | 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.
* 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 all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-061-1/+1
| | | 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)
* bpo-11913: Add README.rst to the distutils standard READMEs list (#563)Ryan Gonzalez2017-04-141-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
| | * Issue #26071: Fixes preprocessor definition and rebuilds ↵Steve Dower2016-12-132-0/+0
| | | | | | | | | | | | wininst-14.0[-amd64].exe
* | | Make cs_path_exists a protected, static methodJason R. Coombs2016-10-141-19/+19
| | |
* | | Add case-sensitive file comparison for detecting/adding standard default files.Jason R. Coombs2016-10-141-2/+20
| | |
* | | Extract methods from sdist.add_defaults, allowing subclasses to override or ↵Jason R. Coombs2016-10-141-0/+15
| | | | | | | | | | | | inject different behaviors.
* | | Get names for README files from class attribute, allowing subclass to override.Jason R. Coombs2016-10-141-1/+3
| | |