Skip to content

Migrate code to FindPython

Migrate FindPythonInterp/Libs calls to the respective FindPython calls. Apart from modifying the find_package calls, all PYTHON_.* variables have been replaced by Python_.*. Also remove any hard-coded 2.7 version information.

In addition, I found a case in atlas_install_python_modules where a call to find_package(Python) interfered with the value of ARG_UNPARSED_ARGUMENTS. Fixed by saving the value of that variable before the call. In addition, I implemented some minimal caching in order not to invoke FindPython for each call to atlas_install_python_modules. Unfortunately, even in the latest cmake version this module is extremely slow.

Finally, change the way we force Python2. Instead of using FindPython2 use the FIND variables to steer the python lookup. This avoids having to deal with different module names.

Tested by compiling all Projects/.*

Edited by Frank Winklmeier

Merge request reports