Skip to content

Commit

Permalink
BLD: improve pip build testing. v.2
Browse files Browse the repository at this point in the history
  • Loading branch information
carsten-forty2 committed Nov 11, 2024
1 parent b7f8098 commit 00c4dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/pgcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ else()
## test the wheel: make whlTest
add_custom_target(whl${TARGET_NAME}TestInstall DEPENDS whl${TARGET_NAME}
COMMAND "${Python3_EXECUTABLE}" -m pip uninstall -y ${TARGET_NAME}
COMMAND "${Python3_EXECUTABLE}" -m pip install ${TARGET_NAME} --find-links ${WHEELHOUSE} --no-index
COMMAND "${Python3_EXECUTABLE}" -m pip install ${WHEELHOUSE}/${PY_WHEELFILE} --find-links ${WHEELHOUSE}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Installing ${TARGET_NAME} in virtual test environment"
)
Expand Down
2 changes: 1 addition & 1 deletion pygimli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ else()
# update the environment with VIRTUAL_ENV variable (mimic the activate script) and search again
add_custom_target(whl${TARGET_NAME}TestInstall DEPENDS whl${TARGET_NAME} DEPENDS whlpgcoreTestRun
COMMAND "${Python3_EXECUTABLE}" -m pip uninstall -y ${TARGET_NAME}
COMMAND "${Python3_EXECUTABLE}" -m pip install ${TARGET_NAME} --quiet --find-links ${WHEELHOUSE} --no-index
COMMAND "${Python3_EXECUTABLE}" -m pip install ${WHEELHOUSE}/${PY_WHEELFILE} --quiet --find-links ${WHEELHOUSE}
COMMENT "Installing ${TARGET_NAME} in virtual test environment"
)
add_custom_target(whl${TARGET_NAME}TestRun DEPENDS whl${TARGET_NAME}TestInstall
Expand Down

0 comments on commit 00c4dae

Please sign in to comment.