Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
7ecf236b
Unverified
Commit
7ecf236b
authored
Jul 01, 2021
by
Matthew Brett
Committed by
GitHub
Jul 01, 2021
Browse files
Merge pull request #409 from isuruf/universal2
MRG: Use the universal2 build only on arm64 hardware
parents
8466aa75
ce0d6eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
osx_utils.sh
osx_utils.sh
+8
-1
No files found.
osx_utils.sh
View file @
7ecf236b
...
...
@@ -156,7 +156,14 @@ function pyinst_fname_for_version {
local
py_version
=
$1
local
py_osx_ver
=
${
2
:-
$(
macpython_sdk_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
echo
"python-
${
py_version
}
-macos11.0.
${
inst_ext
}
"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment