From 22e24497a510c174e6de7718ad918a423d1973dd Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 9 Feb 2017 11:16:16 -0800 Subject: 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 --- host/cmake/Modules/UHDPython.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/cmake/Modules') 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} -- cgit v1.2.3