diff options
Diffstat (limited to 'host/cmake/Modules/UHDPython.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} |