Skip to content

Commit

Permalink
[Python] Provide cmake switch (XROOTD_PYBUILD_ENV) for setting up pyt…
Browse files Browse the repository at this point in the history
…hon build environment.
  • Loading branch information
simonmichal committed May 9, 2022
1 parent 1afe230 commit 7273b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/CMakeLists.txt
Expand Up @@ -83,7 +83,7 @@ if ( NOT ${VALID_PIP_EXIT_CODE} EQUAL 0 )
install(
CODE
"EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install \
COMMAND /usr/bin/env ${XROOTD_PYBUILD_ENV} ${PYTHON_EXECUTABLE} ${SETUP_PY} install \
--verbose \
--prefix \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} \
${DEB_INSTALL_ARGS}
Expand All @@ -94,7 +94,7 @@ else()
install(
CODE
"EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -m pip install \
COMMAND /usr/bin/env ${XROOTD_PYBUILD_ENV} ${PYTHON_EXECUTABLE} -m pip install \
${PIP_OPTIONS} \
${CMAKE_CURRENT_BINARY_DIR}
)"
Expand Down

0 comments on commit 7273b0b

Please sign in to comment.