Commit c47800ea authored by René Heß's avatar René Heß

Correctly set python interpreter when creating a virtualenv

parent a563e5d3
Pipeline #18614 passed with stage
in 19 minutes and 22 seconds
......@@ -140,6 +140,7 @@ if(NOT IS_DIRECTORY "${DUNE_PYTHON_VIRTUALENV_PATH}")
if(NOT DUNE_PYTHON_ALLOW_GET_PIP)
dune_execute_process(COMMAND ${PYTHON_EXECUTABLE}
-m ${VIRTUALENV_PACKAGE_NAME}
-p ${PYTHON_EXECUTABLE}
"${DUNE_PYTHON_VIRTUALENV_PATH}"
RESULT_VARIABLE venv_install_result
)
......@@ -159,6 +160,7 @@ if(NOT IS_DIRECTORY "${DUNE_PYTHON_VIRTUALENV_PATH}")
# try to build the env without pip
dune_execute_process(COMMAND ${PYTHON_EXECUTABLE}
-m ${VIRTUALENV_PACKAGE_NAME}
-p ${PYTHON_EXECUTABLE}
${NOPIP_OPTION}
"${DUNE_PYTHON_VIRTUALENV_PATH}"
ERROR_MESSAGE "Fatal error when setting up a virtualenv."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment