Skip to content

Commit

Permalink
Explicitly install setuptools in environment
Browse files Browse the repository at this point in the history
setuptools i no longer pre-installed in virtual environments with venv
in Python 3.12+.
  • Loading branch information
blowekamp committed Oct 24, 2023
1 parent d825cea commit da78080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wrapping/Python/LegacyPackaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (SimpleITK_PYTHON_USE_VIRTUALENV)
add_custom_command( OUTPUT "${VIRTUAL_PYTHON_EXECUTABLE}"
COMMAND "${Python_EXECUTABLE}" "-m" "venv" "--clear" "${PythonVirtualenvHome}"
COMMAND "${VIRTUAL_PYTHON_EXECUTABLE}" "-m" "pip" "install" "--upgrade" "pip"
COMMAND "${VIRTUAL_PYTHON_EXECUTABLE}" "-m" "pip" "install" "wheel" "numpy!=1.24.1,!=1.24.0" "."
COMMAND "${VIRTUAL_PYTHON_EXECUTABLE}" "-m" "pip" "install" "wheel" "numpy!=1.24.1,!=1.24.0" "setuptools>=42" "."
WORKING_DIRECTORY "${SimpleITK_Python_BINARY_DIR}"
DEPENDS
"${SWIG_MODULE_SimpleITKPython_TARGET_NAME}"
Expand Down

0 comments on commit da78080

Please sign in to comment.