cpython/Lib/distutils
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
..
command [3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). (GH-21277) 2020-07-02 10:05:35 +03:00
tests [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806) 2021-05-02 11:18:58 +02:00
__init__.py
_msvccompiler.py bpo-38597: Never statically link extension initialization code on Windows (GH-18724) 2020-03-02 16:30:18 -08:00
archive_util.py bpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921) 2018-12-20 19:00:14 +02:00
bcppcompiler.py
ccompiler.py closes bpo-37965: Fix compiler warning of distutils CCompiler.test_function. (GH-15561) 2019-08-28 10:32:34 -07:00
cmd.py
config.py bpo-32155: Revert distutils.config change (#4618) 2017-11-28 23:19:26 +01:00
core.py
cygwinccompiler.py Replace KB unit with KiB (#4293) 2017-11-08 14:44:44 -08:00
debug.py
dep_util.py
dir_util.py
dist.py bpo-19610: Warn if distutils is provided something other than a list to some fields (#4685) 2017-12-04 18:58:12 -08:00
errors.py
extension.py
fancy_getopt.py
file_util.py
filelist.py
log.py bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) 2018-09-23 09:12:59 +03:00
msvc9compiler.py Remove all mention of Windows IA-64 support (GH-3389) 2017-09-06 15:45:25 -07:00
msvccompiler.py Remove all mention of Windows IA-64 support (GH-3389) 2017-09-06 15:45:25 -07:00
README Distutils no longer needs to remain compatible with 2.3 (GH-11423) 2019-01-10 10:55:03 +11:00
spawn.py bpo-35920: Windows 10 ARM32 platform support (GH-11774) 2019-04-25 18:36:45 +00:00
sysconfig.py bpo-35920: Windows 10 ARM32 platform support (GH-11774) 2019-04-25 18:36:45 +00:00
text_file.py
unixccompiler.py [3.8] bpo-41100: Support macOS 11 Big Sur and Apple Silicon Macs (#25806) 2021-05-02 11:18:58 +02:00
util.py bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902) 2019-06-12 10:44:29 -07:00
version.py
versionpredicate.py

This directory contains the Distutils package.

There's a full documentation available at:

    http://docs.python.org/distutils/

The Distutils-SIG web page is also a good starting point:

    http://www.python.org/sigs/distutils-sig/

$Id$