-
-
Notifications
You must be signed in to change notification settings - Fork 107
ARM OSX Migrator #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM OSX Migrator #376
Changes from all commits
2bef27b
be06056
1aa13bd
0e2ff57
40a5e6a
ec1807b
ee59120
68dfd7e
de384a0
867917a
98c1211
e4234a5
91424e0
ea6c3ac
d73f965
d84006a
36722b8
7a062ec
203aad1
ccf173b
b3fb2ad
b5f49fe
7f392d7
784353a
a5d5106
bd87476
2826466
180e3a1
7f6ccdd
c55f00c
7646dec
9d53870
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| MACOSX_DEPLOYMENT_TARGET: | ||
| - '11.0' | ||
| bzip2: | ||
| - '1' | ||
| c_compiler: | ||
| - clang | ||
| c_compiler_version: | ||
| - '11' | ||
| channel_sources: | ||
| - conda-forge/label/llvm_rc,conda-forge,https://conda-web.anaconda.org/conda-forge | ||
| channel_targets: | ||
| - conda-forge main | ||
| cxx_compiler: | ||
| - clangxx | ||
| cxx_compiler_version: | ||
| - '11' | ||
| libffi: | ||
| - '3.2' | ||
| macos_machine: | ||
| - arm64-apple-darwin20.0.0 | ||
| macos_min_version: | ||
| - '11.0' | ||
| openssl: | ||
| - 1.1.1 | ||
| pin_run_as_build: | ||
| bzip2: | ||
| max_pin: x | ||
| libffi: | ||
| max_pin: x.x | ||
| openssl: | ||
| max_pin: x.x.x | ||
| python: | ||
| min_pin: x.x | ||
| max_pin: x.x | ||
| readline: | ||
| max_pin: x | ||
| sqlite: | ||
| max_pin: x | ||
| tk: | ||
| max_pin: x.x | ||
| xz: | ||
| max_pin: x.x | ||
| zlib: | ||
| max_pin: x.x | ||
| python: | ||
| - '3.8' | ||
| readline: | ||
| - '8.0' | ||
| sqlite: | ||
| - '3' | ||
| target_platform: | ||
| - osx-arm64 | ||
| tk: | ||
| - '8.6' | ||
| xz: | ||
| - '5.2' | ||
| zlib: | ||
| - '1.2' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| build_platform: {osx_arm64: osx_64} | ||
| compiler_stack: comp7 | ||
| conda_forge_output_validation: true | ||
| max_py_ver: '38' | ||
| max_r_ver: '35' | ||
| provider: {linux_aarch64: native, linux_ppc64le: native, osx: azure, win: azure} | ||
| conda_forge_output_validation: true | ||
| test_on_native_only: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| --- a/configure 2020-08-14 02:59:05.841967550 +0000 | ||
| +++ b/configure 2020-08-14 03:02:01.839782466 +0000 | ||
| @@ -3312,6 +3312,8 @@ | ||
| { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 | ||
| $as_echo "\"$MACHDEP\"" >&6; } | ||
|
|
||
| +if test -z "${_PYTHON_HOST_PLATFORM}" | ||
| +then | ||
| if test "$cross_compiling" = yes; then | ||
| case "$host" in | ||
| *-*-linux*) | ||
| @@ -3336,6 +3338,7 @@ | ||
| esac | ||
| _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" | ||
| fi | ||
| +fi | ||
|
|
||
| # Some systems cannot stand _XOPEN_SOURCE being defined at all; they | ||
| # disable features if it is defined, without any means to access these | ||
| @@ -6172,7 +6175,7 @@ | ||
| if test "$cross_compiling" = yes; then | ||
| case "$READELF" in | ||
| readelf|:) | ||
| - as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||
| + #as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 | ||
| ;; | ||
| esac | ||
| fi | ||
| @@ -9244,7 +9247,7 @@ | ||
| conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| fi | ||
|
|
||
| - | ||
| + if test -z "${MACOSX_DEFAULT_ARCH}"; then | ||
| if test "${ac_osx_32bit}" = "yes"; then | ||
| case `/usr/bin/arch` in | ||
| i386) | ||
| @@ -9271,6 +9274,7 @@ | ||
| esac | ||
|
|
||
| fi | ||
| + fi | ||
|
|
||
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" | ||
| LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| From 2add6fb11b0eddf459c2e79ec86376a8adb00cfc Mon Sep 17 00:00:00 2001 | ||
| From: Ronald Oussoren <ronaldoussoren@mac.com> | ||
| Date: Wed, 24 Jun 2020 14:22:16 +0200 | ||
| Subject: [PATCH] BPO-41101: Support "arm64" in Mac/Tools/pythonw | ||
|
|
||
| --- | ||
| Mac/Tools/pythonw.c | 6 ++++++ | ||
| .../next/macOS/2020-06-24-14-21-17.bpo-41101.z9hCsP.rst | 2 ++ | ||
| 2 files changed, 8 insertions(+) | ||
| create mode 100644 Misc/NEWS.d/next/macOS/2020-06-24-14-21-17.bpo-41101.z9hCsP.rst | ||
|
|
||
| diff --git a/Mac/Tools/pythonw.c b/Mac/Tools/pythonw.c | ||
| index 1d2db383f943c..21e79665442b6 100644 | ||
| --- a/Mac/Tools/pythonw.c | ||
| +++ b/Mac/Tools/pythonw.c | ||
| @@ -119,10 +119,16 @@ setup_spawnattr(posix_spawnattr_t* spawnattr) | ||
|
|
||
| #elif defined(__ppc__) | ||
| cpu_types[0] = CPU_TYPE_POWERPC; | ||
| + | ||
| #elif defined(__i386__) | ||
| cpu_types[0] = CPU_TYPE_X86; | ||
| + | ||
| +#elif defined(__arm64__) | ||
| + cpu_types[0] = CPU_TYPE_ARM64; | ||
| + | ||
| #else | ||
| # error "Unknown CPU" | ||
| + | ||
| #endif | ||
|
|
||
| if (posix_spawnattr_setbinpref_np(spawnattr, count, | ||
| diff --git a/Misc/NEWS.d/next/macOS/2020-06-24-14-21-17.bpo-41101.z9hCsP.rst b/Misc/NEWS.d/next/macOS/2020-06-24-14-21-17.bpo-41101.z9hCsP.rst | ||
| new file mode 100644 | ||
| index 0000000000000..f66863db00c06 | ||
| --- /dev/null | ||
| +++ b/Misc/NEWS.d/next/macOS/2020-06-24-14-21-17.bpo-41101.z9hCsP.rst | ||
| @@ -0,0 +1,2 @@ | ||
| +Support the new "arm64" architecture for macOS in the pythonw executable in | ||
| +framework builds. |
Uh oh!
There was an error while loading. Please reload this page.