Skip to content

pip break_system_packages method and Ubuntu 24.04 support#83

Merged
PabloHiro merged 3 commits intoansible:mainfrom
rexberg:main
Apr 9, 2026
Merged

pip break_system_packages method and Ubuntu 24.04 support#83
PabloHiro merged 3 commits intoansible:mainfrom
rexberg:main

Conversation

@rexberg
Copy link
Copy Markdown
Contributor

@rexberg rexberg commented Nov 23, 2024

Should solve #63 and #82

  • Allow pip to modify externally-managed Python installs when needed. Can probably be changed to use the break_system_packages option when when ansible-core 2.17 is no longer considered new.
  • Adds support for Ubuntu 24.04. This includes receptor_install_method=package since receptor and python3-receptorctl packages exists in the Ubuntu 24.04 repository.

@rexberg rexberg changed the title Allow pip to modify externally-managed Python pip break_system_packages method and Ubuntu 24.04 support Nov 24, 2024
@ssuess-xit
Copy link
Copy Markdown

i like to see this merged. as of now the downloadable receptor package from AWX cannot be used on current Ubuntu and Debian OSes because of PEP 668

@ssuess-xit
Copy link
Copy Markdown

ssuess-xit commented Mar 13, 2025

I applied the patch like this, afterwards it worked for my Ubuntu 24.04

cd ~/.ansible/collections/ansible_collections/ansible/receptor
curl -o pr-83.diff https://patch-diff.githubusercontent.com/raw/ansible/receptor-collection/pull/83.diff
git apply pr-83.diff

# or use this if git apply does not work
patch -p1 < pr-83.diff

@iborysiuk
Copy link
Copy Markdown

I tested this patch, works like a charm on Ubuntu 24.04!

mhtr pushed a commit to mhtr/receptor-collection that referenced this pull request Aug 18, 2025
@rexberg
Copy link
Copy Markdown
Contributor Author

rexberg commented Mar 27, 2026

@PabloHiro Any reason why #118 gets merged but this PR does not.

@PabloHiro
Copy link
Copy Markdown
Collaborator

@PabloHiro Any reason why #118 gets merged but this PR does not.

@rexberg let me bring it up to the team.

Comment thread roles/setup/tasks/python_packages.yml Outdated
rexberg and others added 3 commits April 9, 2026 15:37
Can probably be changed to use the `break_system_packages` option when
when ansible-core 2.17 is no longer considered new.
receptor_install_method=package will install receptor and
python3-receptorctl via apt.

molecule-ubuntu using Containerfile_ubuntu.j2.
@PabloHiro
Copy link
Copy Markdown
Collaborator

@rexberg we have a requirement now to have verified commits signed with GPG keys. I have taken the freedom to sign your commits, hope you don't mind. This should be merging as soon as CI is finished.

@PabloHiro PabloHiro merged commit 7517780 into ansible:main Apr 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants