-
- Downloads
[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 `e8b1c038` and `96d906b1` 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 `7e729978` 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 404a719b) * 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 5291639e) * 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 49926cf2) 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>
Showing
- Doc/whatsnew/3.8.rst 22 additions, 0 deletionsDoc/whatsnew/3.8.rst
- Lib/_osx_support.py 70 additions, 8 deletionsLib/_osx_support.py
- Lib/ctypes/macholib/dyld.py 12 additions, 0 deletionsLib/ctypes/macholib/dyld.py
- Lib/ctypes/test/test_macholib.py 9 additions, 6 deletionsLib/ctypes/test/test_macholib.py
- Lib/distutils/tests/test_build_ext.py 6 additions, 2 deletionsLib/distutils/tests/test_build_ext.py
- Lib/distutils/unixccompiler.py 1 addition, 1 deletionLib/distutils/unixccompiler.py
- Lib/sysconfig.py 12 additions, 0 deletionsLib/sysconfig.py
- Lib/test/test_bytes.py 1 addition, 0 deletionsLib/test/test_bytes.py
- Lib/test/test_platform.py 5 additions, 2 deletionsLib/test/test_platform.py
- Lib/test/test_unicode.py 2 additions, 0 deletionsLib/test/test_unicode.py
- Mac/BuildScript/build-installer.py 92 additions, 16 deletionsMac/BuildScript/build-installer.py
- Mac/BuildScript/resources/ReadMe.rtf 4 additions, 8 deletionsMac/BuildScript/resources/ReadMe.rtf
- Mac/README.rst 4 additions, 0 deletionsMac/README.rst
- Mac/Tools/pythonw.c 8 additions, 4 deletionsMac/Tools/pythonw.c
- Misc/ACKS 4 additions, 0 deletionsMisc/ACKS
- Misc/NEWS.d/next/macOS/2021-04-10-17-01-18.bpo-41100.N9FhqU.rst 9 additions, 0 deletions...EWS.d/next/macOS/2021-04-10-17-01-18.bpo-41100.N9FhqU.rst
- Modules/_ctypes/callbacks.c 31 additions, 8 deletionsModules/_ctypes/callbacks.c
- Modules/_ctypes/callproc.c 115 additions, 12 deletionsModules/_ctypes/callproc.c
- Modules/_ctypes/ctypes.h 8 additions, 0 deletionsModules/_ctypes/ctypes.h
- Modules/_ctypes/malloc_closure.c 21 additions, 2 deletionsModules/_ctypes/malloc_closure.c
Loading
Please register or sign in to comment