Project

General

Profile

Bug #17103

make python3 optional on RHEL 7

Added by Ken Dreyer almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Python 3 is available on Fedora, but when it comes to RHEL 7, it's only available in EPEL. We should make this optional for situations where we can't depend on EPEL's Python 3 for builds (eg. RH Ceph Storage downstream).

I think this can be broken down into a couple parts:

CMake should have a "WITH_PYTHON3" variable so that we can set -DWITH_PYTHON3=OFF when building on RHEL 7.

All Python 3-specific content in the RPMs should be split out into separate packages that will be made optional.

History

#1 Updated by Nathan Cutler almost 4 years ago

+1 would be useful for SUSE builds as well

#2 Updated by Willem Jan Withagen almost 4 years ago

Tried things on FreeBSD, and making python3 optional in src/CMakeLists.txt is possible by changing REQUIRED into QUIET...
But then CMake bombs out on checking the cython stuff, and expects to build with Cython3.
And that also happens if python3 is not even installed.

So that will require some more conditionals in generating the for-list for iterating over the different versions.

#3 Updated by Kefu Chai almost 4 years ago

the change on cmake side is posted at https://github.com/ceph/ceph/pull/11015.

Also available in: Atom PDF