Hi! Since RHEL 8 distribute python 3.11, please consider adding 3.11 (and maybe 3.12) to Modules/FindPython/Support.cmake. Thank you! Please make this issue public. Sincerely, Gabriel
Do you have a test case or example that needs this feature?
(In reply to Tom Stellard from comment #1) > Do you have a test case or example that needs this feature? $ rm -rf CMakeFiles CMakeCache.txt Makefile cmake_install.cmake ; cmake . -- The CXX compiler identification is GNU 8.5.0 -- The C compiler identification is GNU 8.5.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) -- Configuring done -- Generating done -- Build files have been written to: /home/user/dummy >> After adding 3.11 to /usr/share/cmake/Modules/FindPython/Support.cmake << $ rm -rf CMakeFiles CMakeCache.txt Makefile cmake_install.cmake ; cmake . -- The CXX compiler identification is GNU 8.5.0 -- The C compiler identification is GNU 8.5.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Python: /usr/bin/python3.11 (found version "3.11.2") found components: Interpreter Development Development.Module Development.Embed -- Configuring done -- Generating done -- Build files have been written to: /home/user/dummy >> CMakeLists.txt << cmake_minimum_required(VERSION 3.12) project(dummy LANGUAGES CXX C ASM) find_package(Python COMPONENTS Interpreter Development) I need python 3.11 for building kodi.