cpython/Lib/distutils/tests
Ned Deily b29d0a5a78
[3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806)
* bpo-41100: Support macOS 11 and Apple Silicon on Python 3.8

This is a partial backport of bpo-41100 changes `e8b1c038b1` and `96d906b144` 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 `7e729978fa` 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 404a719b51)

* 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 5291639e61)

* 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 49926cf2bc)

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>
2021-05-02 11:18:58 +02:00
..
__init__.py bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946) 2020-06-17 19:09:49 +02:00
includetest.rst bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 17:34:19 -04:00
Setup.sample
support.py bpo-37421: Fix test_distutils.test_build_ext() (GH-14564) 2019-07-03 02:48:14 -07:00
test_archive_util.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_bdist.py [3.8] bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184) (GH-15188) 2019-08-09 01:22:59 +01:00
test_bdist_dumb.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_bdist_msi.py
test_bdist_rpm.py
test_bdist_wininst.py bpo-37481: Deprecate distutils bdist_wininst command (GH-14553) 2019-07-05 02:03:23 -07:00
test_build.py
test_build_clib.py
test_build_ext.py [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806) 2021-05-02 11:18:58 +02:00
test_build_py.py
test_build_scripts.py
test_check.py bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 17:34:19 -04:00
test_clean.py
test_cmd.py
test_config.py bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 2019-03-12 08:39:57 -07:00
test_config_cmd.py bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225) (GH-19444) 2020-04-09 17:32:21 +02:00
test_core.py
test_cygwinccompiler.py
test_dep_util.py
test_dir_util.py
test_dist.py bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 2019-03-12 08:39:57 -07:00
test_extension.py
test_file_util.py
test_filelist.py
test_install.py
test_install_data.py
test_install_headers.py
test_install_lib.py
test_install_scripts.py
test_log.py Use in-memory streams instead of NamedTemporaryFile. (GH-9508) 2018-09-23 14:10:07 +03:00
test_msvc9compiler.py
test_msvccompiler.py bpo-38597: Never statically link extension initialization code on Windows (GH-18724) 2020-03-02 16:30:18 -08:00
test_register.py
test_sdist.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_spawn.py bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) 2019-04-17 16:26:36 +02:00
test_sysconfig.py bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764) 2019-04-11 01:38:48 +02:00
test_text_file.py
test_unixccompiler.py
test_upload.py
test_util.py bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) 2018-12-18 16:17:56 +01:00
test_version.py
test_versionpredicate.py