[Pkg-cmake-team] Bug#1024625: cmake-data: FindPython.cmake points to newest Python version, not the default

Andrius Merkys merkys at debian.org
Tue Nov 22 12:38:10 GMT 2022


Package: cmake-data
Version: 3.25.0-1
Severity: important
Control: affects -1 src:openstructure
Control: affects -1 src:promod3

Dear Maintainer,

Due to the added support for Python 3.11, CMake's FindPython.cmake no 
longer returns the default Python version (3.10 currently), but returns 
the latest one (3.11 currently). Due to this, some packages FTBFS (for 
example, openstructure and promod3) and some only provide the built 
object for Python 3.11 which is not the default.

There was a similar bug #945825 during previous Python transition. That 
was resolved by patching FindPython.cmake to use 'py3versions -d'. I 
suppose additional logic has to be implemented to allow for default 
Python version being not the latest available Python version.

Andrius



More information about the Pkg-cmake-team mailing list