aboutsummaryrefslogtreecommitdiffstats
path: root/host/python
diff options
context:
space:
mode:
Diffstat (limited to 'host/python')
-rw-r--r--host/python/CMakeLists.txt3
-rwxr-xr-xhost/python/setup.py.in2
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'],