mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Do no require six module if python is 3.x
This commit is contained in:
parent
a7928bf14c
commit
33696780bf
@ -79,9 +79,8 @@ else()
|
|||||||
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
|
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
|
||||||
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR})
|
set(PYTHON_VERSION_MAJOR ${Python3_VERSION_MAJOR})
|
||||||
volk_python_check_module("mako >= 0.4.2" mako "mako.__version__ >= '0.4.2'" MAKO_FOUND)
|
volk_python_check_module("mako >= 0.4.2" mako "mako.__version__ >= '0.4.2'" MAKO_FOUND)
|
||||||
volk_python_check_module("six - python 2 and 3 compatibility library" six "True" SIX_FOUND)
|
|
||||||
endif()
|
endif()
|
||||||
if(NOT Python3_FOUND OR NOT MAKO_FOUND OR NOT SIX_FOUND)
|
if(NOT Python3_FOUND OR NOT MAKO_FOUND)
|
||||||
find_package(Python2 COMPONENTS Interpreter)
|
find_package(Python2 COMPONENTS Interpreter)
|
||||||
if(Python2_FOUND)
|
if(Python2_FOUND)
|
||||||
set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE})
|
set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE})
|
||||||
|
Loading…
Reference in New Issue
Block a user