Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.11 upgrade #244

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open

Python 3.11 upgrade #244

wants to merge 1 commit into from

Conversation

dmzoneill
Copy link
Member

Shoud be built with appropriate build arg
ansible-builder build -v3 --build-arg PYCMD=/usr/bin/python3.11 -t py311

Shoud be built with appropriate build arg
ansible-builder build -v3 --build-arg PYCMD=/usr/bin/python3.11 -t py311
@dmzoneill
Copy link
Member Author

by the way @TheRealHaoLiu @gundalow I have the option to merge here. Someone should update the repo settings to prevent merge without approval

@dericcrago
Copy link

I believe this is slightly different, but yields the same outcome as #207, is one way preferred over the other? FWIW, I personally like the #207 approach a little better. 🤷

Copy link
Contributor

@austlane austlane May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per https://ansible.readthedocs.io/projects/builder/en/latest/definition/#dependencies

This can be implemented more cleanly as

dependencies:
  python_interpreter:
    package_system: python3.11
    python_path: /usr/bin/python3.11
  system: |
    python3.11-devel [platform:rpm compile]
...

ansible-builder will automatically install python3.11 into the base image, and set vars according in the resulting container.
See:

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.

3 participants