Skip to content

Commit b897625

Browse files
committed
Use MACOSX_DEPLOYMENT_TARGET if it is set
Closes #209.
1 parent cbb10fa commit b897625

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

scripts/macpython-build-module-wheels.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ for VENV in "${VENVS[@]}"; do
5656
osx_arch="x86_64"
5757
build_path="${SCRIPT_DIR}/../ITK-${py_mm}-macosx_x86_64"
5858
fi
59+
if [[ ! -z "${MACOSX_DEPLOYMENT_TARGET}" ]]; then
60+
osx_target="${MACOSX_DEPLOYMENT_TARGET}"
61+
fi
5962

6063
if [[ -e $PWD/requirements-dev.txt ]]; then
6164
${Python3_EXECUTABLE} -m pip install --upgrade -r $PWD/requirements-dev.txt

scripts/macpython-build-wheels.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ for VENV in "${VENVS[@]}"; do
9595
osx_arch="x86_64"
9696
build_path="${SCRIPT_DIR}/../ITK-${py_mm}-macosx_x86_64"
9797
fi
98+
if [[ ! -z "${MACOSX_DEPLOYMENT_TARGET}" ]]; then
99+
osx_target="${MACOSX_DEPLOYMENT_TARGET}"
100+
fi
98101
source_path=${SCRIPT_DIR}/../ITK-source/ITK
99102
SETUP_PY_CONFIGURE="${script_dir}/setup_py_configure.py"
100103

0 commit comments

Comments
 (0)