Skip to content

FindPython: use system Python 3 version if available

Kamil Dudka requested to merge xdudka00/cmake:gentoo-python3 into master

The newest installed version of Python 3 is often not the default version on a Gentoo Linux system, where multiple Python 3 versions can be installed on a single system and /usr/bin/python3 is the one that should be used by default.

The proposed patch (originally written by Bernd Buschinski) fixes the following bug on Gentoo Linux:

... and it does not cause any problems on Linux distributions where /usr/bin/python3 is a symlink to the newest installed version of Python 3.

Merge request reports