-
Notifications
You must be signed in to change notification settings - Fork 50
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
base: ubuntu-24.04
Are you sure you want to change the base?
feat(24.04): add python3-pip slices #356
Conversation
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 |
085d712
to
f913ef5
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln -s /usr/bin/python3.12 ${rootfs}/usr/bin/python3 | |
ln -s ${rootfs}/usr/bin/python3.12 ${rootfs}/usr/bin/python3 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds the
python3-pip
slices and it's dependencies.