From 38fb5e262bfa4a86aa465af6d424d982dd3b0a91 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 25 Mar 2022 11:04:24 +0100 Subject: debian: Update control and package building - Update dependencies - Add python3-uhd package - Add uhd-doc package In part, this changeset is to further align with the official Debian upstream at https://salsa.debian.org/bottoms/pkg-uhd.git, which is maintained by Maitland Bottoms. --- mpm/python/CMakeLists.txt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'mpm') diff --git a/mpm/python/CMakeLists.txt b/mpm/python/CMakeLists.txt index e7ab542df..6b96c9376 100644 --- a/mpm/python/CMakeLists.txt +++ b/mpm/python/CMakeLists.txt @@ -100,13 +100,16 @@ add_custom_command(OUTPUT ${OUTPUT} DEPENDS ${USRP_MPM_FILES} pyusrp_periphs) add_custom_target(usrp_mpm ALL DEPENDS ${OUTPUT} pyusrp_periphs) -execute_process(COMMAND ${PYTHON_EXECUTABLE} -c - "import os,sysconfig;\ - platlib = sysconfig.get_path(name='platlib');\ - prefix = sysconfig.get_config_var('prefix');\ - print(os.path.relpath(platlib, prefix));" - OUTPUT_VARIABLE USRP_MPM_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE -) +if(NOT DEFINED USRP_MPM_PYTHON_DIR) + execute_process(COMMAND ${PYTHON_EXECUTABLE} -c + "import os,sysconfig;\ + platlib = sysconfig.get_path(name='platlib');\ + prefix = sysconfig.get_config_var('prefix');\ + print(os.path.relpath(platlib, prefix));" + OUTPUT_VARIABLE USRP_MPM_PYTHON_DIR OUTPUT_STRIP_TRAILING_WHITESPACE + ) +endif(NOT DEFINED USRP_MPM_PYTHON_DIR) + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build/lib/usrp_mpm DESTINATION ${USRP_MPM_PYTHON_DIR}) install(PROGRAMS usrp_hwd.py -- cgit v1.2.3