Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit fcec910

Browse files
authored
Merge pull request #115 from isuruf/universal2-3.8
build universal2 wheels for py3.8
2 parents 92333e3 + 1c24e82 commit fcec910

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ jobs:
112112
MB_PYTHON_VERSION: "3.7"
113113
py_3.8_64:
114114
MB_PYTHON_VERSION: "3.8"
115+
py_3.8_universal2:
116+
MB_PYTHON_VERSION: "3.8"
117+
PLAT: universal2
115118
py_3.9_universal2:
116119
MB_PYTHON_VERSION: "3.9"
117120
PLAT: universal2

config.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ function build_wheel {
1919
wrap_wheel_builder _build_wheel $@
2020
}
2121

22+
# TODO: Remove once https://github.com/matthew-brett/multibuild/pull/409 lands
23+
function pyinst_fname_for_version {
24+
# echo filename for OSX installer file given Python and minimum
25+
# macOS versions
26+
# Parameters
27+
# $py_version (Python version in major.minor.extra format)
28+
# $py_osx_ver: {major.minor | not defined}
29+
# if defined, the minimum macOS SDK version that Python is
30+
# built for, eg: "10.6" or "10.9", if not defined, infers
31+
# this from $py_version using macpython_sdk_for_version
32+
local py_version=$1
33+
local py_osx_ver=${2:-$(macpython_sdk_for_version $py_version)}
34+
local inst_ext=$(pyinst_ext_for_version $py_version)
35+
echo "python-${py_version}-macosx${py_osx_ver}.${inst_ext}"
36+
}
37+
2238
function install_delocate {
2339
check_pip
2440
$PIP_CMD install git+https://github.com/isuruf/delocate.git@arm64

0 commit comments

Comments
 (0)