summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806)Ned Deily2021-05-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-41100: Support macOS 11 and Apple Silicon on Python 3.8 This is a partial backport of bpo-41100 changes `e8b1c038b14b5fc8120aab62c9bf5fb840274cb6` and `96d906b144e6e6aa96c5ffebecbcc5d38034bbda` for Python 3.8. We introduce the ability to build Python from source for `arm64` on macOS, but we do not make a promise of support. This allows us to omit support for Universal2 binaries as well as weak-linking of symbols from the macOS SDK based on the deployment target, which are larger changes much more difficult to merge. This also includes a backport of subsequent bpo-42688 change `7e729978fa08a360cbf936dc215ba7dd25a06a08` to fix build errors with external `libffi`. * bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455) On macOS system provided libraries are in a shared library cache and not at their usual location. This PR teaches distutils to search in the SDK, even if there was no "-sysroot" argument in the compiler flags. (cherry picked from commit 404a719b5127602c1a948f8e189ab61cd3f147d8) * bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556) macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert. (cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (cherry picked from commit 49926cf2bcc8b44d9b8f148d81979ada191dd9d5) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: FX Coudert <fxcoudert@gmail.com> Co-authored-by: Max Bélanger <aeromax@gmail.com>
* bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) ↵Victor Stinner2020-06-171-8/+6
| | | | | | | | | | | | | (GH-20946) Fix test_copyreg when numpy is installed: test.pickletester now saves/restores warnings.filters when importing numpy, to ignore filters installed by numpy. Add the save_restore_warnings_filters() function to the test.support.warnings_helper module. (cherry picked from commit 8362893e3fe083df2ec8bb94c28b1a78383eadbf) (cherry picked from commit b39d41ba1b77f7bc51c4d6f6d0e336693192cb3a)
* bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)Miss Islington (bot)2020-05-151-0/+6
| | | | | | | | distutils.tests now saves/restores warnings filters to leave them unchanged. Importing tests imports docutils which imports pkg_resources which adds a warnings filter. (cherry picked from commit 6e57237faf0da8904e0130a11350cae3c5062b82) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler ↵Victor Stinner2020-04-091-2/+1
| | | | | | | is xlc on AIX (GH-19225) (GH-19444) (cherry picked from commit 76db37b1d37a9daadd9e5b320f2d5a53cd1352ec) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* bpo-38597: Never statically link extension initialization code on Windows ↵Miss Islington (bot)2020-03-031-51/+0
| | | | | | | (GH-18724) (cherry picked from commit ce3a4984089b8e0ce5422ca32d75ad057b008074) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-39555: Fix distutils test to handle _d suffix on Windows debug build ↵Miss Islington (bot)2020-02-181-2/+2
| | | | | | | | | | (GH-18357) (GH-18548) https://bugs.python.org/issue39555 Co-authored-by: Steve Dower <steve.dower@python.org> (cherry picked from commit ab0d892288f3058856a8213333e8c3e4ed8a562b)
* bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names ↵Miss Islington (bot)2020-02-181-0/+13
| | | | | | | | | | | in distutils (GH-18150) (GH-18546) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432 (cherry picked from commit 9538bc9185e934bee2bd5ae2cda2b2e92a61906d) Co-authored-by: Stefan Behnel <stefan_ml@behnel.de>
* [3.8] bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184) ↵Pablo Galindo2019-08-091-1/+5
| | | | | | | (GH-15188) (cherry picked from commit aa542c2) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Miss Islington (bot)2019-07-051-2/+3
| | | | | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead. (cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)Miss Islington (bot)2019-07-032-23/+33
| | | | | | | | test_distutils.test_build_ext() is now able to remove the temporary directory on Windows: don't import the newly built C extension ("xx") in the current process, but test it in a separated process. (cherry picked from commit 74c9dd57771f4f061ee83b069c8e7b37de41246b) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Miss Islington (bot)2019-06-121-0/+4
| | | | | (cherry picked from commit daf62627518ad97ce66a48c49496aa0573cf0731) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)Victor Stinner2019-04-171-3/+44
| | | | | | | | | | | | | | | | 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().
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-272-1/+16
| | | | | | (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-151-4/+11
| | | | | | | | | 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-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Steve Dower2019-02-051-2/+4
|
* bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709)Michael Felt2018-12-281-0/+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-10496: distutils check_environ() handles getpwuid() error (GH-10931)Victor Stinner2018-12-181-9/+25
| | | | | check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case.
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Serhiy Storchaka2018-12-053-10/+17
|
* 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-231-20/+26
| | | | | | | 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-34530: Fix distutils find_executable() (GH-9049)Victor Stinner2018-09-041-2/+47
| | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set.
* bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)Bo Bayles2018-01-261-0/+26
| | | | Patch by Bo Bayles.
* bpo-19610: Warn if distutils is provided something other than a list to some ↵Neil Schemenauer2017-12-051-10/+38
| | | | | | | | | | | | | | | 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-19610: setup() now raises TypeError for invalid types (GH-4519)Berker Peksag2017-11-231-0/+44
| | | | | | 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.
* bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632)Steve Dower2017-09-071-2/+26
|
* Remove all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-061-7/+0
| | | It was mostly removed long ago.
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-041-8/+0
| | | See PEP 11.
* 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.
* 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 26931: Skip the test_distutils tests using a compiler executableXavier de Gaye2016-11-175-24/+20
| | | | | | | | that is not found
* | Some distutils tests require zlib for creating tar.gz source distribution.Serhiy Storchaka2016-10-231-1/+3
|\ \ | |/
| * Some distutils tests require zlib for creating tar.gz source distribution.Serhiy Storchaka2016-10-231-3/+3
| |
* | Issue #28222: Merge from 3.5Berker Peksag2016-10-041-2/+14
|\ \ | |/
| * Issue #28222: Don't fail if pygments is not availableBerker Peksag2016-10-041-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().
* | merge 3.5 (#1703178)Benjamin Peterson2016-09-291-0/+7
|\ \ | |/
| * build_ext: correctly parse the link_objects user option (closes #1703178)Benjamin Peterson2016-09-291-0/+7
| | | | | | | | Patch by Valerie Lambert.
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
| |
* | Issue #22493: Inline flags now should be used only at the start of theSerhiy Storchaka2016-09-111-7/+7
| | | | | | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression.
* | Merge backout for test suite fixJason R. Coombs2016-09-021-2/+9
|\ \ | |/
| * Merge backout for test suite fixJason R. Coombs2016-09-021-2/+9
| |\
| | * Backed out changeset cc86e9e102e8Jason R. Coombs2016-09-021-2/+9
| | |
* | | Issue #12885: Merge with 3.5Jason R. Coombs2016-09-021-4/+38
|\ \ \ | |/ /
| * | Issue #12285: Merge with 3.4Jason R. Coombs2016-09-021-4/+38
| |\ \ | | |/