Skip to content

Commit

Permalink
Towards enabling M1 wheel builds
Browse files Browse the repository at this point in the history
Do not try to install MKL on Apple Silicon
  • Loading branch information
malfet committed Oct 3, 2023
1 parent ab2443d commit 50a6e91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wheel/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ if [[ "$desired_python" == "3.11" ]]; then
else
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq "numpy${NUMPY_PINNED_VERSION}" nomkl "setuptools${SETUPTOOLS_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" typing_extensions requests
fi
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja mkl-include==2022.2.1 mkl-static==2022.2.1 -c intel
if [[ "$(uname -m)" == "arm64" ]]; then
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja
else
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq cmake ninja mkl-include==2022.2.1 mkl-static==2022.2.1 -c intel
fi
retry pip install -qr "${pytorch_rootdir}/requirements.txt" || true

# For USE_DISTRIBUTED=1 on macOS, need libuv and pkg-config to find libuv.
Expand Down

0 comments on commit 50a6e91

Please sign in to comment.