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

feat(24.04): add python3-pip slices #356

Open
wants to merge 4 commits into
base: ubuntu-24.04
Choose a base branch
from

Conversation

rebornplusplus
Copy link
Member

This PR adds the python3-pip slices and it's dependencies.

Copy link

github-actions bot commented Oct 1, 2024

Diff of dependencies:

slices/python3-pip.yaml
@@ -1,4 +1,4 @@
 ca-certificates
-python3
 python3-setuptools
 python3-wheel
+python3.12
slices/python3-pkg-resources.yaml
@@ -1 +0,0 @@
-python3
slices/python3-setuptools.yaml
@@ -1,2 +1 @@
-python3
 python3-pkg-resources
slices/python3-wheel.yaml
@@ -1 +0,0 @@
-python3

@rebornplusplus rebornplusplus marked this pull request as ready for review October 1, 2024 17:30
@rebornplusplus rebornplusplus added the Priority Look at me first label Oct 1, 2024
Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

(discussed offline - it would be nice to have python version-specific slices)

This slice comes with python3.12 installed.
rootfs="$(install-slices python3-pip_bins3-12)"

# pip depends on python3.
ln -s /usr/bin/python3.12 ${rootfs}/usr/bin/python3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ln -s /usr/bin/python3.12 ${rootfs}/usr/bin/python3
ln -s ${rootfs}/usr/bin/python3.12 ${rootfs}/usr/bin/python3

Copy link
Member Author

Choose a reason for hiding this comment

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

This would not work, because when I run within chroot, it's going to look for python3 at ${rootfs}/usr/bin but there won't be any directory ${rootfs} within the chroot jail.

@linostar linostar self-requested a review October 16, 2024 11:39
Copy link
Collaborator

@linostar linostar left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority Look at me first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants