-
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
Run uv sync
without creating venv (similar to poetry config) (I believe uv pip
has functionality like that)
#6459
Comments
uv pip
has functionality like that)
uv pip
has functionality like that)uv sync
without creating venv (similar to poetry config) (I believe uv pip
has functionality like that)
Not yet but we're likely to support it soon. |
Just wanted to add some support for this use case - we would love to use uv sync to install at the system level so we don't have to do it separately and get the advantage of a uv sync layer in the docker build (https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers) and more consistency between our production and dev builds in docker - the uv run use case is great for a local install that doesn't conflate itself with my system packages, but it makes it more troublesome when trying to install into a container since then we have to do something like It's not that we don't trust you guys to build cool stuff, it's just adding a layer of abstraction to our containers by running It seems like we can do someting similar with the system layer with the |
We need this as well coming from a similar poetry setup. But perhaps it should not be a functionallity of Would it make more sense to allow This would also allow installing multiple projects in the same system python without it uninstalling previous packages (which im guessing Edit discussion for that here #6670 |
@mike-taylor-nomihealth Does the example at https://github.com/astral-sh/uv-docker-example and the latest Docker guide (just updated now) help? We have support for intermediate layers and it's a one-line change to avoid using
Can you clarify how system level syncing would improve layer caching?
Sorry, but this is a use-case I don't think |
Yes thats what i meant, |
Right, so I guess just having the ability to run As of now I have been able to get around it by creating a venv in a different workdir and then setting that venv in system path. |
FYI, In some cases(especially on CI), I also need something like Yes, it's clear that we need a consistent option for using uv without virtualenv in special cases. Or we'll always have to spend time finding workarounds for every edge case. |
This is supported now via #6834 |
@zanieb Nice and cool. Thanks for your considerate work. |
A use case here is we're deploying to AWS lambda using their container feature. Installing things outside the system folder is a pain... I'm thinking |
Our current Dockerfile install command with poetry - we can disable venv creation
poetry config virtualenvs.create false...
It would be nice to be able to run
uv sync
with a similar commanduv sync --no-venv
or something. This way we don't have to change how our app is built and run, as well as commands that get run when exec into dockerAs of now using a venv in our Dockerfile causes too much of a headache (at least from what i can tell)
The text was updated successfully, but these errors were encountered: