Skip to content

Commit

Permalink
avoid pip install permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemine committed Mar 26, 2024
1 parent 58b9cee commit 433eed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions projects/CUDA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ if (ZS_PYTHON_FOUND AND ZENO_WITH_PyZpc)
add_custom_command(
TARGET copy_py
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env "ZENO_BIN_DIR=${ZENO_BIN_DIR}"
${ZS_OVERWRITE_PYTHON_EXECUTABLE} -m pip install ${CMAKE_CURRENT_SOURCE_DIR}/zpc_jit
COMMAND
${CMAKE_COMMAND} -E env ZENO_BIN_DIR="${ZENO_BIN_DIR}"
${ZS_OVERWRITE_PYTHON_EXECUTABLE} -m pip install ${CMAKE_CURRENT_SOURCE_DIR}/zpc_jit --user
COMMENT "installing pyzpc into the specified conda environment: ${ZS_OVERWRITE_PYTHON_EXECUTABLE}"
)
if (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion projects/CUDA/zpc

0 comments on commit 433eed3

Please sign in to comment.