Open ps-jay opened 7 months ago
We do ship Ansible 8.3 in AL2023 (as of AL2023.2), and this works with the system Python 3.9. As per https://docs.aws.amazon.com/linux/al2023/ug/python.html#python-modules we don't build all the possible python modules for each version of python, instead focusing on the system python (3.9).
I understand the default stance of not building all possible Python modules, and that seems sensible
I wondered if the SELinux bindings might be an exception, since producing a 3.11 package requires compiling against the system libraries (e.g. libselinux isn't available as a wheel from PyPI)
any update regarding this? still not working with python3.11
What package is missing from Amazon Linux 2023? Please describe and include package name.
I'd like a package for the SELinux bindings for Python 3.11 in Amazon Linux 2023
In Amazon Linux 2023, both Python 3.9 and Python 3.11 are packaged. For example, today the versions available are:
python3-3.9.16-1.amzn2023.0.6.x86_64
python3.11-3.11.2-2.amzn2023.0.11.x86_64
But there is no Python 3.11 package for the SELinux bindings. The Python 3.9 package is:
python3-libselinux-3.4-5.amzn2023.0.2.x86_64
Ideally,
python3.11-libselinux
would existIs this an update to existing package or new package request?
New, but similar to
python3-libselinux
Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify.
No
Any additional information you'd like to include. (use-cases, etc)
Our use-case for this package is so that Ansible version 9.x can be used to manage files on AL2023 EC2's.
Ansible 9.x requires a minimum version of Python 3.10 (see: ansible-core support matrix)
If SELinux is turned on, and Ansible tries to manage files, then it encounters the following error:
We setup the Python 3.11 environment for Ansible like so: