Refactor cmake machinery for consistent Python interpreter/libraries handling
|Status:||Backlog||Start date:||09 Jan 2019|
Our long standing problem is inconsistency in Python interpreter and Python library versions. Even on Linux cmake often finds Python libraries which doesn't match Python interpreter.
We solve this problem by running our own ValidatePythonInstallation.cmake.
Seems that modern versions of CMake offers a module which takes care about consistency.
Within this item, investigate if we can switch to FindPython module. Questions to address:
Which will be the minimum CMake version requirement
How it works under Mac which is known for its messy Python-as-Framework-bundle.
How it works under Python virtual environment.