cmake: python.cmake venv fixup

This commit is contained in:
Corentin Le Molgat
2025-12-03 10:11:52 +01:00
parent 32ee8627ca
commit 9d05705160

View File

@@ -833,7 +833,7 @@ if(BUILD_VENV)
# Must NOT call it in a folder containing the setup.py otherwise pip call it
# (i.e. "python setup.py bdist") while we want to consume the wheel package
COMMAND ${VENV_Python3_EXECUTABLE} -m pip install
--find-links=${CMAKE_CURRENT_BINARY_DIR}/python/dist ${PYTHON_PROJECT}==${PROJECT_VERSION}
--find-links=${CMAKE_CURRENT_BINARY_DIR}/python/dist ${PYTHON_PROJECT}==${PROJECT_VERSION}${PYTHON_RELEASE}
# install modules only required to run examples
COMMAND ${VENV_Python3_EXECUTABLE} -m pip install
pandas matplotlib pytest scipy svgwrite