diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-03-25 11:04:24 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-04-06 14:30:49 -0700 |
commit | 38fb5e262bfa4a86aa465af6d424d982dd3b0a91 (patch) | |
tree | a26fcd6002319efdfd3b0f7758dec49b158ece9e /mpm | |
parent | 03070de5541299d419bf5e42b7118d91fed40433 (diff) | |
download | uhd-38fb5e262bfa4a86aa465af6d424d982dd3b0a91.tar.gz uhd-38fb5e262bfa4a86aa465af6d424d982dd3b0a91.tar.bz2 uhd-38fb5e262bfa4a86aa465af6d424d982dd3b0a91.zip |
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.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/CMakeLists.txt | 17 |
1 files changed, 10 insertions, 7 deletions
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 |