Skip to content
Snippets Groups Projects
Commit 7985f236 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[cmake] Add a user-facing interface to add additional pip params

parent fae77c75
Branches
Tags
1 merge request!919[cmake] Add a user-facing interface to add additional pip params
Pipeline #32961 passed
......@@ -28,6 +28,12 @@
# Set this variable to have all installations of python packages use
# :code:`pip --editable`.
#
#
# .. cmake_variable:: DUNE_PYTHON_ADDITIONAL_PIP_PARAMS
#
# Use this variable to set additional flags for pip in this build. This can e.g.
# be used to point pip to alternative package indices in restricted environments.
#
function(dune_python_install_package)
# Parse Arguments
......@@ -79,7 +85,7 @@ function(dune_python_install_package)
endif()
set(INSTALL_CMDLINE -m pip install
"${INSTALL_OPTION}" --upgrade "${WHEEL_OPTION}" "${EDIT_OPTION}" ${PYINST_ADDITIONAL_PIP_PARAMS}
"${INSTALL_OPTION}" --upgrade "${WHEEL_OPTION}" "${EDIT_OPTION}" ${PYINST_ADDITIONAL_PIP_PARAMS} ${DUNE_PYTHON_ADDITIONAL_PIP_PARAMS}
"${PYINST_FULLPATH}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment