uhd/mpm
Aaron Rossetto 87bc7c1bde cmake: Replace distutils.sysconfig with sysconfig
This commit replaces uses of distutils.sysconfig's get_python_lib()
function with sysconfig's near-equivalent get_path() function to get the
directory for site-specific, platform-specific files. Unfortunately,
get_path() does not have a way to easily modify or strip the prefix
applied to the path like get_python_lib() does, so the code must
manually modify the path to get the same effect:

- First, the platlib path is retrieved from the get_path() call.
- Next, the default base that is used to form the pathlib path is
queried via the get_config_var('base') call.
- Next, the portion of the platlib path that matches the default base is
stripped, and any leading path separator remaining is stripped. This
fundamentally replicates the behavior of get_python_lib() with an empty
prefix (i.e., the prefix positional parameter is specified as '').
- If a different prefix is desired, then the os.path.join() function is
used to combine the new prefix with the stripped pathlib path, ensuring
that the platform-specific path separator is used in crafting the path.
2022-01-14 14:36:39 -06:00
..
cmake/Modules mpm: fixed cmake macro for enabling modules 2020-01-22 12:54:54 -08:00
include uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
lib cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR 2021-09-10 15:08:10 -05:00
python cmake: Replace distutils.sysconfig with sysconfig 2022-01-14 14:36:39 -06:00
systemd uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
tests uhd: mpm: update all license header w/ "-or-later" 2019-03-08 00:43:07 +01:00
tools uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
.gitignore mpm: Rearchitecture of AD9371 code to use ctrl/device paradigm 2017-12-22 15:03:44 -08:00
CMakeLists.txt cmake: Replace distutils with CMake for version checks 2022-01-14 14:36:39 -06:00