diff options
author | Trung Tran <trung.tran@ettus.com> | 2019-02-24 22:54:25 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-02-25 15:20:47 -0800 |
commit | 1dbc0229b7718313aa5f9dd3526f4a43f538d9c9 (patch) | |
tree | a665f6c8e02b2688bc5d30901f1d2a9198e4bc7b /host | |
parent | 16489f9d4b8242b5fe3da167b296bab66fb0d557 (diff) | |
download | uhd-1dbc0229b7718313aa5f9dd3526f4a43f538d9c9.tar.gz uhd-1dbc0229b7718313aa5f9dd3526f4a43f538d9c9.tar.bz2 uhd-1dbc0229b7718313aa5f9dd3526f4a43f538d9c9.zip |
python: cmake: Use native format for setup.py
setuptools isn't compatible with Unix style path on Windows 10
machines. We need to convert any path before running setuptools.
Signed-off-by: Trung Tran <trung.tran@ettus.com>
Diffstat (limited to 'host')
-rw-r--r-- | host/python/CMakeLists.txt | 3 | ||||
-rwxr-xr-x | host/python/setup.py.in | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index ec2c80fd4..12325beb3 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -58,7 +58,8 @@ set(PYUHD_FILES set(SETUP_PY_IN "${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in") set(SETUP_PY "${CMAKE_CURRENT_BINARY_DIR}/setup.py") set(TIMESTAMP_FILE "${CMAKE_CURRENT_BINARY_DIR}/build/timestamp") - +# convert binary directory to native format to use in SETUP_PY file. +file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR} NATIVE_CURRENT_BINARY_DIR) configure_file(${SETUP_PY_IN} ${SETUP_PY}) add_custom_command(OUTPUT ${TIMESTAMP_FILE} diff --git a/host/python/setup.py.in b/host/python/setup.py.in index 3c2176c0e..4d2df10a5 100755 --- a/host/python/setup.py.in +++ b/host/python/setup.py.in @@ -23,7 +23,7 @@ setup(name='uhd', author_email='packages@ettus.com', url='https://www.ettus.com/', license='GPLv3', - package_dir={'': '${CMAKE_CURRENT_BINARY_DIR}'}, + package_dir={'': r'${NATIVE_CURRENT_BINARY_DIR}'}, package_data={'uhd': ['*.so']}, zip_safe=False, packages=['uhd'], |