Skip to content

Commit 740da41

Browse files
authored
CMake: pip_install_nodeps Target (#203)
Add a target that does not search of check any dependencies with pip. Useful in package managers.
1 parent be174cd commit 740da41

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,17 @@ add_custom_target(${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install
280280
${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install_requirements
281281
)
282282

283+
# this is for package managers only
284+
add_custom_target(${pyAMReX_CUSTOM_TARGET_PREFIX}pip_install_nodeps
285+
${CMAKE_COMMAND} -E env AMREX_MPI=${AMReX_MPI}
286+
${Python_EXECUTABLE} -m pip install --force-reinstall --no-index --no-deps ${PYINSTALLOPTIONS} --find-links=amrex-whl amrex
287+
WORKING_DIRECTORY
288+
${pyAMReX_BINARY_DIR}
289+
DEPENDS
290+
${pyAMReX_INSTALL_TARGET_NAMES}
291+
${pyAMReX_CUSTOM_TARGET_PREFIX}pip_wheel
292+
)
293+
283294

284295
# Tests #######################################################################
285296
#

0 commit comments

Comments
 (0)