Skip to content

Commit 9e65698

Browse files
committed
COMP: Use venv for macOS venv executable
On ARM: ++ basename /Library/Frameworks/Python.framework/Versions/3.9 + py_mm=3.9 + VENV=/Users/svc-dashboard/D/P/ITKPythonPackage/scripts/../venvs/3.9 + VIRTUALENV_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.9/bin/virtualenv + /Library/Frameworks/Python.framework/Versions/3.9/bin/virtualenv /Users/svc-dashboard/D/P/ITKPythonPackage/scripts/../venvs/3.9 ImportError: cannot import name 'Path' from 'virtualenv.util.path' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/virtualenv/util/path/__init__.py)
1 parent efb8865 commit 9e65698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/macpython-build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
3838
fi
3939
py_mm=$(basename ${PYBIN})
4040
VENV=${SCRIPT_DIR}/../venvs/${py_mm}
41-
VIRTUALENV_EXECUTABLE=${PYBIN}/bin/virtualenv
41+
VIRTUALENV_EXECUTABLE="${PYBIN}/bin/python3 -m venv"
4242
${VIRTUALENV_EXECUTABLE} ${VENV}
4343
VENVS+=(${VENV})
4444
done

0 commit comments

Comments
 (0)