Skip to content
Snippets Groups Projects
Commit 060bb15f authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #8651: ObservationStartListener: fix 'make install' error on systems with...

Task #8651: ObservationStartListener: fix 'make install' error on systems with python 2.4. Ugly hack is deliberate: 1. I cannot afford to waste even more time on compat w/ ancient software installs and broken python version detection logic, and 2. as a protest against this terrible practice; let's fix the right problem.
parent 8ed6aa1c
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,19 @@ ...@@ -3,9 +3,19 @@
lofar_package(ObservationStartListener 1.0 DEPENDS MessageBus pyparameterset) lofar_package(ObservationStartListener 1.0 DEPENDS MessageBus pyparameterset)
include(LofarFindPackage) include(LofarFindPackage)
lofar_find_package(QPID) lofar_find_package(Python 2.6 REQUIRED)
lofar_find_package(LibXMLxx)
add_subdirectory(etc) # ! Python version detection fails on not so new systems. Best solution is an
add_subdirectory(src) # ! ugly hack: No use wasting more of our time on compat w/ ancient software.
add_subdirectory(test) # ! Python 2.4 is 10+ yrs old. Stop wasting time! Fix the real problem!!!
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.exit(not(sys.version_info[0] >= 2 and sys.version_info[1] >= 6 and sys.version_info[2] >= 0))" RESULT_VARIABLE py260_not_supp)
if(NOT py260_not_supp) # double negation also skips pkg if command fails
lofar_find_package(QPID)
lofar_find_package(LibXMLxx)
add_subdirectory(etc)
add_subdirectory(src)
add_subdirectory(test)
else(NOT py260_not_supp)
message(WARNING "package ObservationStartListener skipped: found python is too old (or detection cmd failed)")
endif(NOT py260_not_supp)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment