Re: python-unversioned-command for epel8 (provides /usr/bin/python)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27. 07. 21 23:03, Neal Gompa wrote:
On Tue, Jul 27, 2021 at 5:09 AM Tomas Orsava <torsava@xxxxxxxxxx> wrote:

If I understand what you're describing correctly, this is not a bug.
In the default state, /usr/bin/python should *not* exist, that's correct behaviour. If you want it to exist, you need to configure it using alternatives [0].

We considered making /usr/bin/python exist but be a noop, but that breaks a lot of automated (build) tools that search for Python executables (they often start with python, if not found search for python3, or python2, etc.).
And there was no reasonable default for Python in RHEL 8 because it sits between the past (Python 2 default in RHEL 7) and the future (Python3 default in RHEL 9). Either default would cause problems, often hidden and hard to debug problems, for some subset of our customers.

[0] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/assembly_configuring-the-unversioned-python_configuring-basic-system-settings


But this won't be a problem in RHEL 9, will it? I don't want to suffer
through this when we're not even going to have Python 2 in RHEL 9 at
all...

Not at all. We have reviewed all the RHEL 8 differences from Fedora and how much painful they were/are and decided to play the "if we would not do this in Fedora, we should not do it in RHEL 9 either" card. That includes /usr/bin/python (optionally (un)installable but only one), platform-python (don't), modularity (don't), and other things.

Some differences are still planned though, albeit hopefully minor:


1) We plan non-modular parallel-installable Python stacks in RHEL 9, but we don't want to take care of such stacks in Fedora. However, we intent to fully support this case for Fedora's downstreams (not only RHEL: any downstream, e.g. even Copr repos):
https://bugzilla.redhat.com/show_bug.cgi?id=1821489


2) We need some upgrade-path compatibility shims from RHEL 8's platform-python that are not needed in Fedora and we plan to include them in RHEL 9 only:
https://bugzilla.redhat.com/show_bug.cgi?id=1891487


3) In Fedora, various Python interpreters use pip/setuptools/wheel wheels from /usr/share/python-wheels or bundle their own wheel when the "general" ones are too new to work with old Pythons. Given the differences of life cycle of RHEL and Fedora, we plan to use wheels from /usr/share/python3.X-wheels instead (and have the possibility to build newer versions of pip/setuptools/wheel wheels for each newer Python version we introduce to RHEL 9). RHEL 8 already partially does that for Python 3.8+, but in RHEL 9, we want to do this from the beginning. I intent to do the rpm-macros-groundwork for this in Fedora, but we might need to explicitly not make this change in ELN to preserve Rawhide/ELN builds compatibility.
https://bugzilla.redhat.com/show_bug.cgi?id=1982668


Usual disclaimer applies: Those are our plans as engineers, not promises by Red Hat as a company.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Announce]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux