summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* 00138-fix-distutils-tests-in-debug-build.patchFedora Python maintainers2020-09-291-6/+9
| | | | | 00138 # Fixup some tests within distutils to work with how debug builds are set up:
* 00137-skip-distutils-tests-that-fail-in-rpmbuild.patchFedora Python maintainers2020-09-291-0/+1
| | | | | 00137 # Some tests within distutils fail when run in an rpmbuild:
* 00112-2.7.13-debug-build.patchFedora Python maintainers2020-09-293-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 00112 # Patch to support building both optimized vs debug stacks DSO ABIs, sharing the same .py and .pyc files, using "_d.so" to signify a debug build of an extension module. Based on Debian's patch for the same, http://patch-tracker.debian.org/patch/series/view/python2.6/2.6.5-2/debug-build.dpatch (which was itself based on the upstream Windows build), but with some changes: * Debian's patch to dynload_shlib.c looks for module_d.so, then module.so, but this can potentially find a module built against the wrong DSO ABI. We instead search for just module_d.so in a debug build * We remove this change from configure.in's build of the Makefile: SO=$DEBUG_EXT.so so that sysconfig.py:customize_compiler stays with shared_lib_extension='.so' on debug builds, so that UnixCCompiler.find_library_file can find system libraries (otherwise "make sharedlibs" fails to find system libraries, erroneously looking e.g. for "libffi_d.so" rather than "libffi.so") * We change Lib/distutils/command/build_ext.py:build_ext.get_ext_filename to add the _d there, when building an extension. This way, "make sharedlibs" can build ctypes, by finding the sysmtem libffi.so (rather than failing to find "libffi_d.so"), and builds the module as _ctypes_d.so * Similarly, update build_ext:get_libraries handling of Py_ENABLE_SHARED by appending "_d" to the python library's name for the debug configuration * We modify Modules/makesetup to add the "_d" to the generated Makefile rules for the various Modules/*.so targets This may introduce issues when building an extension that links directly against another extension (e.g. users of NumPy?), but seems more robust when searching for external libraries * We don't change Lib/distutils/command/build.py: build.build_purelib to embed plat_specifier, leaving it as is, as pure python builds should be unaffected by these differences (we'll be sharing the .py and .pyc files) * We introduce DEBUG_SUFFIX as well as DEBUG_EXT: - DEBUG_EXT is used by ELF files (names and SONAMEs); it will be "_d" for a debug build - DEBUG_SUFFIX is used by filesystem paths; it will be "-debug" for a debug build Both will be empty in an optimized build. "_d" contains characters that are valid ELF metadata, but this leads to various ugly filesystem paths (such as the include path), and DEBUG_SUFFIX allows these paths to have more natural names. Changing this requires changes elsewhere in the distutils code. * We add DEBUG_SUFFIX to PYTHON in the Makefile, so that the two configurations build parallel-installable binaries with different names ("python-debug" vs "python"). * Similarly, we add DEBUG_SUFFIX within python-config and python$(VERSION)-config, so that the two configuration get different paths for these. See also patch 130 below
* 00104-lib64-fix-for-test_install.patchFedora Python maintainers2020-09-291-1/+2
| | | | | | 00104 # Only used when "%%{_lib}" == "lib64" Another lib64 fix, for distutils/tests/test_install.py; not upstream:
* 00102-2.7.13-lib64.patchFedora Python maintainers2020-09-292-3/+7
| | | | | | | | Only used when "%%{_lib}" == "lib64" Fixup various paths throughout the build and in distutils from "lib" to "lib64", and add the /usr/lib64/pythonMAJOR.MINOR/site-packages to sitedirs, in front of /usr/lib/pythonMAJOR.MINOR/site-packages Not upstream
* python-2.6.4-distutils-rpath.patchFedora Python maintainers2020-09-291-0/+10
| | | | | | | 00017 # Fixup distutils/unixccompiler.py to remove standard library path from rpath: Adapted from Patch0 in ivazquez' python3000 specfile, removing usage of super() as it's an old-style class
* 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-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) ↵Victor Stinner2019-04-252-3/+13
| | | | | | | | | (GH-12949) 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-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)Victor Stinner2019-04-091-0/+3
| | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler().
* 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-12417)Victor Stinner2019-03-181-13/+82
| | | | | | 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-12349)Victor Stinner2019-03-152-4/+29
| | | | | | | | | | 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-10496: distutils check_environ() handles getpwuid() error (GH-10931) ↵Victor Stinner2018-12-182-4/+47
| | | | | | | | | (GH-11213) 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)
* [2.7] bpo-34738: Add directory entries in ZIP files created by distutils. ↵Serhiy Storchaka2018-12-054-4/+20
| | | | | | (GH-9419). (GH-10950) (cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2)
* [2.7] bpo-35133: Fix mistakes when concatenate string literals on different ↵Serhiy Storchaka2018-11-055-7/+7
| | | | | | | | | | | | lines. (GH-10284) (GH-10335) (GH-10336) 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) (cherry picked from commit 7054e5c80b6e98cd44e22d1bc2d7f0a94343089d)
* bpo-34530: Fix distutils find_executable() (GH-9049) (GH-9058)Victor Stinner2018-09-042-3/+49
| | | | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set. (cherry picked from commit 39487196c87e28128ea907a0d9b8a88ba53f68d5)
* bpo-28222: Don't fail if pygments is not available (GH-7564)Zachary Ware2018-06-091-2/+14
| | | | | | | We can't just skip the test if docutils is available, but pygments is not because the purpose of the test was testing a bug in _check_rst_data(). (cherry-picked from b5bb404ccaa9a3dd81e220fb4ca40253be778831)
* [2.7] bpo-21060 Improve error message for "setup.py upload" without dist ↵Éric Araujo2018-02-191-1/+3
| | | | | | | files (GH-5726). (cherry picked from commit 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c) Co-authored-by: Éric Araujo <merwok@netwok.org>
* bpo-32304: Fix distutils upload for tar files ending with b'\r' (GH-5264) ↵Bo Bayles2018-01-292-2/+26
| | | | | (GH-5331) Patch by Bo Bayles.
* bpo-31955: Fix distutils CCompiler.set_executable() for Unicode (GH-4316)Mazay02017-11-082-1/+25
| | | Fix CCompiler.set_executable() of distutils to handle properly Unicode strings.
* test_distutils: test_build_ext uses EnvironGuard (#1458)Victor Stinner2017-05-041-0/+1
| | | | | | | | | Use EnvironGuard on BuildExtTestCase to save/restore os.environ, to fix the following warning: Warning -- os.environ was modified by test_distutils MSVCCompiler.initialize() of distutils.msvc9compiler modifies os.environ.
* test_distutils: use EnvironGuard (#1433)Victor Stinner2017-05-032-1/+3
| | | | | | | Use EnvironGuard on InstallTestCase and UtilTestCase. Backport fixes from master to prevent the following warning: Warning -- os.environ was modified by test_distutils
* Fix spelling in code commentsMartin Panter2016-12-181-1/+1
|
* Some distutils tests require zlib for creating tar.gz source distribution.Serhiy Storchaka2016-10-231-0/+7
|
* build_ext: correctly parse the link_objects user option (closes #1703178)Benjamin Peterson2016-09-292-0/+8
| | | | Patch by Valerie Lambert.
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
|
* Switch upload.pypi.io to upload.pypi.orgDonald Stufft2016-08-033-5/+5
|
* Issue #20767: Fix -R option for FreeBSD/clang.Stefan Krah2016-08-031-0/+2
|
* English spelling and grammar fixesMartin Panter2016-07-111-1/+1
|
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | 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 to fix the grammar.
* Switch to the new upload url for PyPIDonald Stufft2016-07-063-5/+5
|
* Issue #27171: Fix typos in documentation, code comments, and testsMartin Panter2016-06-021-1/+1
|
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-262-2/+2
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-2/+2
|
* Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.Ned Deily2016-02-242-2/+25
| | | | | | | | | | | | | | | As of Xcode 7, SDKs for Apple platforms now include textual-format stub libraries whose file names have a .tbd extension rather than the standard OS X .dylib extension. The Apple compiler tool chain handles these stub libraries transparently and the installed system shared libraries are still .dylibs. However, the new stub libraries cause problems for third-party programs that support building with Apple SDKs and make build-time decisions based on the presence or paths of system-supplied shared libraries in the SDK. In particular, building Python itself with an SDK fails to find system-supplied libraries during setup.py's build of standard library extension modules. The solution is to have find_library_file() in Distutils search for .tbd files, along with the existing types (.a, .so, and .dylib). Patch by Tim Smith.
* Issue #25607: Restore old distutils logging threshold after running tests thatSerhiy Storchaka2015-11-122-0/+4
| | | | parse command line arguments.
* fix name of argument in docstring and the docs (closes #25076)Benjamin Peterson2015-09-131-1/+1
| | | | Patch by TAKASE Arihiro.
* Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.pySteve Dower2015-08-081-1/+1
|
* Close #24508: Backport the 3.5 MSBuild project files.Zachary Ware2015-07-161-4/+6
| | | | | | | The old project files move to PC/VS9.0 and remain supported. VS2008 is still required to build 2.7; VS2010 (or later, plus Windows SDK 7.1) is *also* required to use the new project files.
* keep distutils version in sync with python version automaticallyBenjamin Peterson2015-05-261-8/+2
|
* python 2.7.10 finalv2.7.10Benjamin Peterson2015-05-231-1/+1
|
* bump version to 2.7.10rc1v2.7.10rc1Benjamin Peterson2015-05-101-1/+1
|
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-2/+2
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* fix parsing reST with code or code-block directives (closes #23063)Benjamin Peterson2015-01-152-4/+35
| | | | Patch by Marc Abramowitz.
* fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | Patch by Karan Goel.
* bump to 2.7.9 finalv2.7.9Benjamin Peterson2014-12-101-1/+1
|
* 2.7.9rc1v2.7.9rc1Benjamin Peterson2014-11-261-1/+1
|
* Issue #8876: distutils now falls back to copying files when hard linking ↵Antoine Pitrou2014-10-302-13/+64
| | | | | | doesn't work. This allows use with special filesystems such as VirtualBox shared folders.
* - Issue #17219: Add library build dir for Python extension cross-builds.doko@ubuntu.com2014-10-021-1/+1
|
* #22512: move distutils rpm test's .rpmdb to testing tmpdir.R David Murray2014-10-011-0/+3
| | | | Patch by Francis MB.