Skip to content

Commit

Permalink
CMake: pip_install_nodeps Target (#203)
Browse files Browse the repository at this point in the history
Add a target that does not search of check any dependencies with pip.
Useful in package managers.
  • Loading branch information
ax3l authored Oct 11, 2023
1 parent be174cd commit 740da41
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,17 @@ add_custom_target(${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install
${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install_requirements
)

# this is for package managers only
add_custom_target(${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install_nodeps
${CMAKE_COMMAND} -E env AMREX_MPI=${AMReX_MPI}
${Python_EXECUTABLE} -m pip install --force-reinstall --no-index --no-deps ${PYINSTALLOPTIONS} --find-links=amrex-whl amrex
WORKING_DIRECTORY
${pyAMReX_BINARY_DIR}
DEPENDS
${pyAMReX_INSTALL_TARGET_NAMES}
${pyAMReX_CUSTOM_TARGET_PREFIX}pip_wheel
)


# Tests #######################################################################
#
Expand Down

0 comments on commit 740da41

Please sign in to comment.