-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add --prefix
flag for uv pip install
#3076
Comments
We have a use for this at Jane Street. I have a first draft patch that seems to work. Still need to write tests and think about windows though |
Is |
What’s the use-case? |
Target dumps everything into the specified dir. Prefix implies a certain From the linked doc:
|
What is the workflow though that demands |
(By the way, I don't think |
Do you want advice on your draft? My hope is that you can just change |
I put up a PR here with basic support: #4085. |
Oh wow that was quick. I was about to put mine up but will take a look at this first |
Was hoping to save you some trouble, sorry if I stepped on your toes. |
Haha no worries--thanks for the help! |
When performing multi-stage Docker builds, the
--prefix
flag is very useful to create an isolated install of dependencies that can then be copied to the final stage of a build.Example with
pip
:Related:
-t/--target
flag foruv pip install
#1517--user
flag from pip #2077Notably, this may need to be used in association with
--system
or--python
to specify which python executables are pointed to.The text was updated successfully, but these errors were encountered: