Bug 2137139
Summary: | RFE: Add python3.11 and a suite of ecosystem packages into RHEL 8 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Orsava <torsava> |
Component: | python3.11 | Assignee: | Charalampos Stratakis <cstratak> |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Zachar <lzachar> |
Severity: | unspecified | Docs Contact: | Lenka Špačková <lkuprova> |
Priority: | unspecified | ||
Version: | 8.8 | CC: | carl, cstratak, egolov, irum.malik, jwboyer, maxwell, orion, pviktori, python-maint, release-test-team-automation, torsava |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python3.11-3.11.2-2.el8 | Doc Type: | Enhancement |
Doc Text: |
.Python 3.11 available in RHEL 8
RHEL 8.8 introduces Python 3.11, provided by the new package `python3.11` and a suite of packages built for it, as well as the `ubi8/python-311` container image.
Notable enhancements compared to the previously released Python 3.9 include:
* Significantly improved performance.
* Structural Pattern Matching using the new `match` keyword (similar to `switch` in other languages).
* Improved error messages, for example, indicating unclosed parentheses or brackets.
* Exact line numbers for debugging and other use cases.
* Support for defining context managers across multiple lines by enclosing the definitions in parentheses.
* Various new features related to type hints and the `typing` module, such as the new `X | Y` type union operator, variadic generics, and the new `Self` type.
* Precise error locations in tracebacks pointing to the expression that caused the error.
* A new `tomllib` standard library module which supports parsing TOML.
* An ability to raise and handle multiple unrelated exceptions simultaneously using Exception Groups and the new `except*` syntax.
Python 3.11 and packages built for it can be installed in parallel with Python 3.9, Python 3.8, and Python 3.6 on the same system.
Note that, unlike the previous versions, Python 3.11 is distributed as standard RPM packages instead of a module.
To install packages from the `python3.11` stack, use, for example:
[literal]
----
# yum install python3.11
# yum install python3.11-pip
----
To run the interpreter, use, for example:
[literal]
----
$ python3.11
$ python3.11 -m pip --help
----
See link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_basic_system_settings/index#assembly_installing-and-using-python_configuring-basic-system-settings[Installing and using Python] for more information.
Note that Red Hat will continue to provide support for Python 3.6 until the end of life of RHEL 8. Similarly to Python 3.9, Python 3.11 will have a shorter life cycle; see link:https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle[Red Hat Enterprise Linux Application Streams Life Cycle].
|
Story Points: | --- |
Clone Of: | 2127923 | Environment: | |
Last Closed: | 2023-05-16 08:41:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2143990, 2143991, 2157616, 2157661, 2157665, 2157666, 2157667, 2157668, 2157670, 2157671, 2157672, 2157673, 2157674, 2157675, 2157676, 2157677, 2157678, 2157679, 2157680, 2157681, 2157682, 2157683, 2157684, 2157685, 2157686, 2157687, 2157688, 2157689, 2157690, 2157691, 2157692, 2157693, 2157694, 2164412, 2164415, 2165702, 2168662, 2169780 | ||
Bug Blocks: |
Comment 14
Orion Poplawski
2023-03-17 15:50:29 UTC
(In reply to Orion Poplawski from comment #14) > There doesn't appear to be a python3.11-devel package available in CentOS > Stream 8. What is the plan here? Without that it will be impossible for > EPEL to provide additional needed python 3.11 packages. It is in the powertools repository. # dnf install 'dnf-command(config-manager)' # dnf config-manager --set-enabled powertools and off you go :) (In reply to Orion Poplawski from comment #14) > There doesn't appear to be a python3.11-devel package available in CentOS > Stream 8. What is the plan here? Without that it will be impossible for > EPEL to provide additional needed python 3.11 packages. We have open issue [1] to move packages into correct repositories in c8s. Once that is fixed the package python3.11-devel will be in AppStream channel, same as will be in RHEL. No idea how fast it will be fixed, though. [1] https://issues.redhat.com/browse/CS-1502 Thanks for the updates. Yeah, not really going to be able to build things until packages like python3.11-idna and python3.11-wheel are available. python3.11-rpm-macros is missing from the compose completely; it's not in CRB or Appstream. Also, python3-rpm-macros 3-45 [1] is missing from the mirrors. This contains fixes for Python 3.11, and without it, some of the Python macros don't work properly with 3.11. Is there a reason this hasn't been pushed? ``` fedrq pkgs -b c8s -S -Fnevrr python3-rpm-macros python3-rpm-macros-3-44.el8.noarch centos-stream8-baseos ``` [1] https://git.centos.org/rpms/python-rpm-macros/c/73059c8cd96c35477198d0bb5e2e042dd22e9861?branch=c8s Missing python3.11-rpm-macros is tracked in https://issues.redhat.com/browse/CS-1502 python3-rpm-macros 3-45 is tracked in bz2169780. > Missing python3.11-rpm-macros is tracked in https://issues.redhat.com/browse/CS-1502 Yeah, I saw. I wanted to leave a comment saying that python3.11-rpm-macros is completely missing (not just in the wrong repository), but I apparently don't have sufficient permissions (it seems to be read only). > python3-rpm-macros 3-45 is tracked in bz2169780. Ack, thanks. I subscribed to that bug. > I wanted to leave a comment saying that python3.11-rpm-macros is completely missing (not just in the wrong repository) That is known. The report says "(In brackets I list which repo the package currently resides, if there's no bracket, the package is not present in c8s at all.)" and python3.11-rpm-macros has no bracket. > I apparently don't have sufficient permissions (it seems to be read only). I've asked about this at https://lists.centos.org/pipermail/centos-devel/2023-March/142868.html Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (python3.11 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2882 |