Skip to content

Commit

Permalink
more pip instal refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Dec 6, 2023
1 parent be69e0e commit 7783b56
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cmake/thirdparty/SetupPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ FUNCTION(PYTHON_ADD_PIP_SETUP)
# TODO: we might want to explore this in the future
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${args_NAME}_build
COMMAND ${PYTHON_EXECUTABLE} -m pip install . -V --upgrade
--disable-pip-version-check --no-warn-script-location
--target "${abs_dest_path}"
DEPENDS ${args_PY_SETUP_FILE} ${args_PY_SOURCES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
Expand All @@ -253,7 +254,8 @@ FUNCTION(PYTHON_ADD_PIP_SETUP)
"
EXECUTE_PROCESS(WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${PYTHON_EXECUTABLE} -m pip install . -V --upgrade
--target ${py_mod_inst_prefix}
--disable-pip-version-check --no-warn-script-location
--target ${py_mod_inst_prefix}
OUTPUT_VARIABLE PY_DIST_UTILS_INSTALL_OUT)
MESSAGE(STATUS \"\${PY_DIST_UTILS_INSTALL_OUT}\")
")
Expand All @@ -263,7 +265,8 @@ FUNCTION(PYTHON_ADD_PIP_SETUP)
"
EXECUTE_PROCESS(WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${PYTHON_EXECUTABLE} -m pip install . -V --upgrade
--target \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${args_DEST_DIR}
--disable-pip-version-check --no-warn-script-location
--target \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${args_DEST_DIR}
OUTPUT_VARIABLE PY_DIST_UTILS_INSTALL_OUT)
MESSAGE(STATUS \"\${PY_DIST_UTILS_INSTALL_OUT}\")
")
Expand Down

0 comments on commit 7783b56

Please sign in to comment.