uhd/mpm/python
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
..
pyusrp_periphs uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
tests mpm: tests: Add lib/ to library load path 2021-06-18 07:28:28 -05:00
usrp_mpm mpm: Demote WARNING on minor compat mismatch to DEBUG 2022-01-14 14:36:19 -06:00
aurora_bist_test.py mpm: n3xx: Fix usage of UIO in Aurora tests 2018-03-01 18:34:28 -08:00
CMakeLists.txt cmake: Replace distutils.sysconfig with sysconfig 2022-01-14 14:36:39 -06:00
copy_python_module.cmake cmake: Update coding style to use lowercase commands 2018-11-14 14:10:09 -08:00
e320_bist mpm: e320/e310: Expose APIs to drive GPIO source via UHD 2020-01-23 11:37:51 -08:00
n3xx_bist mpm: Remove references to rfnoc_num_blocks 2021-04-12 15:14:45 -05:00
setup.py.in cmake: Add RegMaps build component to MPM 2021-03-01 15:57:01 -06:00
socket_test.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
test_lmk.py mpm: Update all license headers 2018-02-19 16:55:08 -08:00
usrp_hwd.py sim: Integrate simulator into UHD 2020-10-28 15:25:48 -05:00
usrp_update_fs mpm: Update usrp_update_fs to support X410 2021-07-08 00:05:43 -07:00
x4xx_bist mpm: x4xx: add DIO GPIO API configuration methods 2021-11-03 06:04:50 -07:00