Commit 6eb61d39 authored by Johan Ström's avatar Johan Ström

Make python2 optional

parent 7d0904a7
Pipeline #468 passed with stage
in 2 minutes and 46 seconds
......@@ -28,7 +28,7 @@ if(PYTHON2_EXECUTABLE)
pycmd(${PYTHON2_EXECUTABLE} Python2_SITELIB "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(prefix='')")
message(STATUS "Python2_SITELIB = ${Python2_SITELIB}")
else()
message(ERROR "python2 executable not found. this is required for proper agocontrol operation")
message(STATUS "python2 executable not found. some legacy devices will not work")
endif()
if(PYTHON3_EXECUTABLE)
......@@ -37,3 +37,7 @@ if(PYTHON3_EXECUTABLE)
else()
message(STATUS "python3 executable not found")
endif()
if(NOT PYTHON2_EXECUTABLE AND NOT PYTHON3_EXECUTABLE)
message(ERROR "neither python2 nor python3 executable found, please install python3")
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment