Unverified Commit 7ecf236b authored by Matthew Brett's avatar Matthew Brett Committed by GitHub
Browse files

Merge pull request #409 from isuruf/universal2

MRG: Use the universal2 build only on arm64 hardware
parents 8466aa75 ce0d6eaa
...@@ -156,7 +156,14 @@ function pyinst_fname_for_version { ...@@ -156,7 +156,14 @@ function pyinst_fname_for_version {
local py_version=$1 local py_version=$1
local py_osx_ver=${2:-$(macpython_sdk_for_version $py_version)} local py_osx_ver=${2:-$(macpython_sdk_for_version $py_version)}
local inst_ext=$(pyinst_ext_for_version $py_version) local inst_ext=$(pyinst_ext_for_version $py_version)
if [ "${PLAT:-}" == "arm64" ] || [ "${PLAT:-}" == "universal2" ]; then # Use the universal2 installer if we are on arm64
# universal2 installer for python 3.8 needs macos 11.0 to run on
# and therefore x86_64 builds use the intel only installer.
# Note that intel only installer can create universal2 wheels, but
# creates intel only wheels by default. When PLAT=universal2
# we set the env variable _PYTHON_HOST_PLATFORM to change this
# default.
if [ "$(uname -m)" == "arm64" ]; then
if [ "$py_version" == "3.9.1" ]; then if [ "$py_version" == "3.9.1" ]; then
echo "python-${py_version}-macos11.0.${inst_ext}" echo "python-${py_version}-macos11.0.${inst_ext}"
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment