Skip to content
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

Apple silicon support #2504

Merged
merged 4 commits into from
Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions build_deps/build_pip_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,21 @@ function main() {

BUILD_CMD="setup.py bdist_wheel --platlib-patch"
if is_macos; then
BUILD_CMD="${BUILD_CMD} --plat-name macosx_10_13_x86_64"
if [[ x"$(arch)" == x"arm64" ]]; then
BUILD_CMD="${BUILD_CMD} --plat-name macosx_11_0_arm64"
else
BUILD_CMD="${BUILD_CMD} --plat-name macosx_10_13_x86_64"
fi
PYTHON=python3
else
PYTHON=python
fi

if [[ -z ${NIGHTLY_FLAG} ]]; then
# Windows has issues with locking library files for deletion so do not fail here
python ${BUILD_CMD} || true
$PYTHON ${BUILD_CMD} || true
else
python ${BUILD_CMD} ${NIGHTLY_FLAG} || true
$PYTHON ${BUILD_CMD} ${NIGHTLY_FLAG} || true
fi

cp dist/*.whl "${DEST}"
Expand All @@ -93,4 +100,4 @@ function main() {
echo $(date) : "=== Output wheel file is in: ${DEST}"
}

main "$@"
main "$@"