Add Ubuntu 24.04 Ansible installation and test coverage#4140
Merged
tpdownes merged 3 commits intoMay 19, 2025
Conversation
c966799 to
b47d7c6
Compare
The motivation to upgrade pip system-wide is not very well-founded as it only beneficial to: - user-managed system-wide pip installations - enabling a high-versioned pip by default in new virtual environments Because pip can be upgraded within virtual environments, this is not critical. Additionally, PEP 668 is the Python community's official position against using Python package management tools (pip, etc) to manage packages alongside "externally" managed packages (apt, dnf, etc). Recent Debian and Ubuntu releases have adopted PEP 668 by default, thus breaking the ability to use packaged-pip to upgrade pip system-wide. - https://peps.python.org/pep-0668/ - https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments
b47d7c6 to
8c50261
Compare
abbas1902
approved these changes
May 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Ansible support for Ubuntu 24.04 by:
Switching to python3-setuptools
On Ubuntu 24.04, python3-distutils is no longer separately packaged and python3-setuptools is the recommended alternative. On all recent Debian-derived platforms python3-setuptools is packaged and, if it exists, depends upon python3-distutils. So this PR makes the choice to uniformly install python3-setuptools.
Background:
distutilsis built into Python whilesetuptoolsis a 3rd party solution, but has wider adoption and functionality.Removing pip self-upgrade
The motivation to upgrade pip system-wide is not very well-founded as it only beneficial to:
Because pip can be upgraded within virtual environments, this is not critical. Additionally, PEP 668 is the Python community's official position against using Python package management tools (pip, etc) to manage packages alongside "externally" managed packages (apt, dnf, etc). Recent Debian and Ubuntu releases have adopted PEP 668 by default, thus breaking the ability to use packaged-pip to upgrade pip system-wide.
Blocked by #4139.
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.