Skip to content

Switch pip installs to uv pip#195

Merged
pedro-psb merged 1 commit intopulp:mainfrom
gerrod3:uv-pip
Apr 16, 2026
Merged

Switch pip installs to uv pip#195
pedro-psb merged 1 commit intopulp:mainfrom
gerrod3:uv-pip

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented Apr 16, 2026

Greatly speeds up the editable installs on compose-up.

@@ -7,4 +7,4 @@ declare PROJECT="$1"
cd "/src/pulp-openapi-generator/$PROJECT-client"

# Editable installs are currently broken for the new client
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How old is this comment and is it still true?

Copy link
Copy Markdown
Contributor

@dralley dralley Apr 16, 2026

Choose a reason for hiding this comment

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

answer: about a year old gerrod3@4ab666f

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is still true, not sure why and the AI did not figure it out either.

Comment thread base/Dockerfile

COPY dev_requirements.txt /dev_requirements.txt

COPY switch_python /usr/bin/switch_python
Copy link
Copy Markdown
Contributor

@dralley dralley Apr 16, 2026

Choose a reason for hiding this comment

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

Are we able to replace the python-installation-switching machinery with UV? I know UV is capable of installing and managing different versions, I don't know if the UX it provides would work in our case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I can test it out in another PR. One issue I could see is that we use update-alternatives to link the python and python3 to the 3.11 install in the base image,

@pedro-psb pedro-psb merged commit 01e36ff into pulp:main Apr 16, 2026
3 checks passed
@gerrod3 gerrod3 deleted the uv-pip branch April 16, 2026 20:02
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