use env variables for MacOS deployment target and architecture
if [ $(uname) == Darwin ]; then
- # scikit-build doesn't support setting MACOSX_DEPLOYMENT_TARGET
- $PYTHON -m pip install . --global-option="build_ext" --global-option="--plat-name=macosx-10.9-x86_64" --no-build-isolation --no-deps --ignore-installed --no-cache-dir -vvv
+ # directly setting MACOSX_DEPLOYMENT_TARGET is not supported by scikit-build
+ $PYTHON -m pip install . \
+ --global-option="build_ext" \
+ --global-option="--plat-name=$MACOSX_DEPLOYMENT_TARGET-$OSX_ARCH" \
+ --no-build-isolation \
+ --no-deps \
+ --ignore-installed \
+ --no-cache-dir \
+ -vvv
else
- $PYTHON -m pip install . --no-build-isolation --no-deps --ignore-installed --no-cache-dir -vvv
+ $PYTHON -m pip install . \
+ --no-build-isolation \
+ --no-deps \
+ --ignore-installed \
+ --no-cache-dir \
+ -vvv
fi
