summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a ↵Ronald Oussoren2021-02-011-2/+2
| | | | | string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
* bpo-42802: Remove distutils bdist_wininst command (GH-24043)Victor Stinner2021-01-082-46/+3
| | | | | | | | | | 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-3/+5
|
* bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)FX Coudert2020-12-031-3/+7
| | | | 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.
* bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)Ronald Oussoren2020-11-081-1/+1
| | | | | | | | | | | Co-authored-by: Lawrence D’Anna <lawrence_danna@apple.com> * Add support for macOS 11 and Apple Silicon (aka arm64) As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy * Support building on recent versions of macOS while deploying to older versions This allows building installers on macOS 11 while still supporting macOS 10.9.
* bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)Jason R. Coombs2020-07-071-0/+5
| | | Automerge-Triggered-By: @jaraco
* bpo-40275: Use new test.support helper submodules in tests (GH-21317)Hai Shi2020-07-064-19/+19
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21151)Hai Shi2020-06-2512-16/+31
| | | | | | | | | | | | | Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
* bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)Victor Stinner2020-06-171-7/+6
| | | | | | | | 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.
* bpo-40698: Improve distutils upload hash digests (GH-20260)Christian Heimes2020-05-201-4/+20
| | | | | | | - 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-40055: test_distutils leaves warnings filters unchanged (GH-20095)Victor Stinner2020-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.
* bpo-40443: Remove unused imports in tests (GH-19804)Victor Stinner2020-04-304-5/+2
|
* bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler ↵Michael Felt2020-04-031-2/+1
| | | | is xlc on AIX (GH-19225)
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-101-1/+2
| | | | | | | | | | | | | 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-39763: distutils.spawn now uses subprocess (GH-18743)Victor Stinner2020-03-041-11/+0
| | | | | | | | Reimplement distutils.spawn.spawn() function with the subprocess module. setup.py now uses a basic implementation of the subprocess module if the subprocess module is not available: before required C extension modules are built.
* bpo-38597: Never statically link extension initialization code on Windows ↵Steve Dower2020-03-031-51/+0
| | | | (GH-18724)
* bpo-39586: Deprecate distutils bdist_msi command (GH-18415)Hugo van Kemenade2020-02-101-2/+3
|
* bpo-39555: Fix distutils test to handle _d suffix on Windows debug build ↵Steve Dower2020-02-061-2/+2
| | | | (GH-18357)
* bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names ↵Stefan Behnel2020-02-041-0/+13
| | | | | | | | | in distutils (GH-18150) Make it export the correct init symbol also on Windows. https://bugs.python.org/issue39432
* bpo-38839: Fix some unused functions in tests (GH-17189)Adam Johnson2019-11-191-2/+0
|
* bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)Pablo Galindo2019-08-081-1/+5
|
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-081-0/+16
| | | | They now return NotImplemented for unsupported type of the other operand.
* bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)Victor Stinner2019-07-051-2/+3
| | | | The distutils bdist_wininst command is now deprecated, use bdist_wheel (wheel packages) instead.
* bpo-37421: Fix test_distutils.test_build_ext() (GH-14564)Victor Stinner2019-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.
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Paul Monson2019-06-121-0/+4
|
* 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
| |