Bug 2208961 - cmake does not search for python 3.11
Summary: cmake does not search for python 3.11
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cmake
Version: 8.8
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Tom Stellard
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-22 08:06 UTC by GV
Modified: 2023-06-27 07:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-157811 0 None None None 2023-05-22 08:06:57 UTC

Description GV 2023-05-22 08:06:28 UTC
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

Comment 1 Tom Stellard 2023-05-23 20:05:47 UTC
Do you have a test case or example that needs this feature?

Comment 2 GV 2023-05-24 06:29:03 UTC
(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.


Note You need to log in before you can comment on or make changes to this bug.