Replies: 4 comments
-
Strictly speaking, when considering what Python you would run now on RL8, anticipating an upgrade to Rocky Linux 9, there is Python 3.11 available as an app stream for RL9.2 supported until May 2026. So, it could be feasible to jump on "the bleeding edge" of 3.11 (but you'd have to anticipate another OS upgrade within 2 years.) Also note: if someone says "Python 3.6 is flagged as vulnerable" - that is not accurate with respect to Rocky Linux / RHEL because RedHat backports security fixes to the Python that they distribute. e.g. Details
|
Beta Was this translation helpful? Give feedback.
-
I think this is an excellent topic for planning the forward-looking path of the project. The initial issue that precipitated this discussion (complexities and changes in functionality in string processing across versions of Python) is solved in the immediate case. While I think that it's a good idea to have a modern stable Python environment, I also think that best practices tell you that you don't need to rely on "platform Python" for your Python tool. I need to look more into https://www.redhat.com/architect/ansible-execution-environment-tips (I believe Jeff Geerling has done some videos on this.) |
Beta Was this translation helpful? Give feedback.
-
The message below is at the top of a deploy log. We probably need to tell ansible that we're using python 3.6.8 explicitly to stop the deprecation?? ansible --version
Or upgrade Ansiblelinks to the current Ansible package release table and support matrix Ansible 2.9 was released 31 Oct 2019 with security updates through 26 Apr 2021 EOL |
Beta Was this translation helpful? Give feedback.
-
With 13820f1 and 1219d72 we are using Python 3.12.5
|
Beta Was this translation helpful? Give feedback.
-
In the current Meza CMTE, Python 3.6.8 is installed. For Rocky Linux 8, the platform version of Python is 3.6.8, and that specific platform version (3.6.x) is supported until May 2029 (10 years from initial release in 2019) which is why we did not propose to change it for the upgrade to MediaWiki 1.39 Milestone.
Meanwhile, the Python project offers a current stable of 3.12.1 (for use in your Python project or user-level account outside the platform version).
Note that Rocky Linux has application streams. See Red Hat Enterprise Linux Application Streams Life Cycle - Red Hat Customer Portal
Although there are other 'Pythons' available for Rocky Linux 8, the only one with a sufficient support lifecycle would be 3.11; but that version is not part of the App Stream for Rocky Linux 9 and support expires in May 2024 (right around the corner). So, we'd only want to upgrade the platform Python to Python 3.9 with two criteria met:
App Streams for Rocky Linux 8
The table above shows that (aside from 3.6) there are currently pythons 2.7, 3.8, 3.9 and 3.11 available. None of these alternatives are supported as long as Python 3.6.
Upgrade USER Python
Strictly, one does not need to install Python 3.6 for user scripts. The platform, e.g. dnf, absolutely requires python 3.6 (and could work with 3.9 as discussed above), but it does not need to be visible to the user. The
pip
probably resolves via alternatives to some pipX.Y.With any Python modifications, you will pip install as regular user and/or use a Virtualenv.
Could we and/or should we make Meza use a virtualenv so as to avail ourselves of a modern Python independent of the platform Python? This question arises from the bug witnessed in issue #7
Beta Was this translation helpful? Give feedback.
All reactions