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

python3 spkg-configure.m4: Require ensurepip #33822

Closed
mkoeppe opened this issue May 8, 2022 · 20 comments
Closed

python3 spkg-configure.m4: Require ensurepip #33822

mkoeppe opened this issue May 8, 2022 · 20 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented May 8, 2022

On Debian, package python3-venv needs to be installed to un-sabotage python3.

Needed in #33812.

CC: @dimpase

Component: packages: standard

Author: Matthias Koeppe

Branch/Commit: 52dca7d

Reviewer: Tobias Diez, Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/33822

@mkoeppe mkoeppe added this to the sage-9.7 milestone May 8, 2022
@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 8, 2022

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 8, 2022

New commits:

eef9e41build/pkgs/python3/spkg-configure.m4: Check for module ensurepip
1340d95build/pkgs/python3/distros/debian.txt: Add python3-venv

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 8, 2022

Commit: 1340d95

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 8, 2022

Author: Matthias Koeppe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 8, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

3a5323e.github/workflows/build.yml: Install python3-venv

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 8, 2022

Changed commit from 1340d95 to 3a5323e

@mkoeppe mkoeppe changed the title python3 spkg-configure.m4: Require ensure-pip python3 spkg-configure.m4: Require ensurepip May 8, 2022
@tobiasdiez
Copy link
Contributor

comment:5

Shouldn't python3-venv then be better included in the base image, then installing it manually in the build workflow?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 8, 2022

comment:6

It will already be in all future base images by the change in build/pkgs/python3/distros/debian.txt

@tobiasdiez
Copy link
Contributor

comment:8

Replying to @mkoeppe:

It will already be in all future base images by the change in build/pkgs/python3/distros/debian.txt

Okay, then why add it manually in the build workflow? For testing purposes this is fine, but I guess it should be removed before merging this ticket.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 9, 2022

comment:9

It's a no-op in the future and we can remove it in a later ticket, but not now because I want to use it for the tests of all the tickets that depend on it.

@tobiasdiez
Copy link
Contributor

comment:10

Makes sense. Then I would propose to squash the current commits and remove python3-venv from the build workflow in a new commit. Then you could cherry pick the squashed commit in other tickets that depend on this one here.

Or at least add a comment in the workflow that it should be removed in the future.

Otherwise this looks good to me.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 10, 2022

Changed commit from 3a5323e to 52dca7d

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 10, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

52dca7d.github/workflows/build.yml: Add comment on python3-venv

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 10, 2022

comment:12

I've added the comment, good idea.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 10, 2022

Reviewer: Tobias Diez

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 29, 2022

comment:14

Let's get this in please

@dimpase
Copy link
Member

dimpase commented May 30, 2022

Changed reviewer from Tobias Diez to Tobias Diez, Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented May 30, 2022

comment:15

lgtm

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 30, 2022

comment:16

Thanks!

@vbraun
Copy link
Member

vbraun commented Jun 12, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants