Skip to content

Commit 5bf7c44

Browse files
committed
macpython: use PYTHON_EXECUTABLE instead of PYBIN
When PYBIN ends up being "Current", ${PYBIN}/python is not a valid executable.
1 parent 2cdead4 commit 5bf7c44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/macpython-build-wheels.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ for VENV in "${VENVS[@]}"; do
7979
echo "#"
8080

8181
# Configure setup.py
82-
${PYBIN}/python ${SETUP_PY_CONFIGURE} "itk"
82+
${PYTHON_EXECUTABLE} ${SETUP_PY_CONFIGURE} "itk"
8383
# Generate wheel
8484
$PYTHON_EXECUTABLE setup.py bdist_wheel --build-type ${build_type} --plat-name ${plat_name} -G Ninja -- \
8585
-DCMAKE_MAKE_PROGRAM:FILEPATH=${NINJA_EXECUTABLE} \
@@ -122,9 +122,9 @@ for VENV in "${VENVS[@]}"; do
122122
wheel_names=$(cat ${SCRIPT_DIR}/WHEEL_NAMES.txt)
123123
for wheel_name in ${wheel_names}; do
124124
# Configure setup.py
125-
${PYBIN}/python ${SETUP_PY_CONFIGURE} ${wheel_name}
125+
${PYTHON_EXECUTABLE} ${SETUP_PY_CONFIGURE} ${wheel_name}
126126
# Generate wheel
127-
${PYBIN}/python setup.py bdist_wheel --build-type ${build_type} --plat-name ${plat_name} -G Ninja -- \
127+
${PYTHON_EXECUTABLE} setup.py bdist_wheel --build-type ${build_type} --plat-name ${plat_name} -G Ninja -- \
128128
-DITK_SOURCE_DIR:PATH=${source_path} \
129129
-DITK_BINARY_DIR:PATH=${build_path} \
130130
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=${osx_target} \

0 commit comments

Comments
 (0)