Clean up Python lookup logic when we drop Python 2 support
The following discussion from !986 (merged) should be addressed:
-
@vavolkl started a discussion: (+1 comment) @clemenci Naive question: Why not replace this whole block with
find_package(Python COMPONENTS Interpreter Development REQUIRED)
? Surely at least
message(FATAL_ERROR "Invalid value for GAUDI_USE_PYTHON_MAJOR (${GAUDI_USE_PYTHON_MAJOR}), only 2 and 3 are supported")
is not necessary ...