diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-02-09 11:16:16 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-20 19:02:32 -0500 |
commit | 22e24497a510c174e6de7718ad918a423d1973dd (patch) | |
tree | 436bc3d08451dbb2cc70f4c11c611cdd4ff23f78 /host/cmake | |
parent | 91a5518443f4ff938f67a2f1bd1b09b24bceecd5 (diff) | |
download | uhd-22e24497a510c174e6de7718ad918a423d1973dd.tar.gz uhd-22e24497a510c174e6de7718ad918a423d1973dd.tar.bz2 uhd-22e24497a510c174e6de7718ad918a423d1973dd.zip |
python: Initial commit of Python API
Initial commit of the Python API using Boost.Python. Bind the
MultiUSRP API for use in Python. Bindings intended to provide as
complete coverage as possible.
- Wrap most multi_usrp calls
- Adding multi channel send/recv examples in examples/python
- Adding setuptools support
- Initial attempt at binding the UHD types and filters
Diffstat (limited to 'host/cmake')
-rw-r--r-- | host/cmake/Modules/UHDPython.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDPython.cmake b/host/cmake/Modules/UHDPython.cmake index f63f47f03..ee78f914c 100644 --- a/host/cmake/Modules/UHDPython.cmake +++ b/host/cmake/Modules/UHDPython.cmake @@ -26,7 +26,7 @@ ELSE(PYTHON_EXECUTABLE) #and if that fails use the find program routine IF(NOT PYTHONINTERP_FOUND) - FIND_PROGRAM(PYTHON_EXECUTABLE NAMES python python2.7 python2.6) + FIND_PROGRAM(PYTHON_EXECUTABLE NAMES python python2.7) IF(PYTHON_EXECUTABLE) SET(PYTHONINTERP_FOUND TRUE) ENDIF(PYTHON_EXECUTABLE) @@ -50,6 +50,7 @@ MACRO(PYTHON_CHECK_MODULE desc mod cmd have) EXECUTE_PROCESS( COMMAND ${PYTHON_EXECUTABLE} -c " ######################################### +from distutils.version import LooseVersion try: import ${mod} except: exit(1) try: assert ${cmd} |