Skip to content

Commit

Permalink
blueos pip fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis36 committed Nov 13, 2024
1 parent 50afffd commit 789987e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/spheral/SpheralPRT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ function(Spheral_Python_Env target_name)
#TODO: Remove this once blueos3 is no longer supported.
set(SPHERAL_USE_SITE_PACKAGES_OPT )
if($ENV{SYS_TYPE} STREQUAL "blueos_3_ppc64le_ib_p9")
set(SPHERAL_USE_SITE_PACKAGES_OPT --system-site-packages)
set(PIP_INSTALL_CMD env MPICC=${MPI_C_COMPILER} MPICXX=${MPI_CXX_COMPILER} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
python -m pip install
--disable-pip-version-check
--no-build-isolation
-f ${SPHERAL_PIP_CACHE_DIR})
)

add_custom_target(${target_name} ALL
COMMAND ${Python3_EXECUTABLE} -m venv --system-site-packages ${${target_name}_PREFIX}/.venv;
COMMAND . ${${target_name}_PREFIX}/.venv/bin/activate &&

${PIP_INSTALL_CMD} ${REQUIREMENTS_ARGS}

DEPENDS Python3::Python
Expand Down

0 comments on commit 789987e

Please sign in to comment.