-
Notifications
You must be signed in to change notification settings - Fork 913
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 an argument which makes uv pip compile
consider installed packages
#8004
Comments
What would be the difference between this and Which considers what is installed and gives you the output of what changed. |
@notatallshaw-gts, it seems like indeed Had to something like this to get a working uv pip install -c constraints.txt -r requirements.in --dry-run --system 2>&1 \
| grep "+ " | sed "s/+ //g" > requirements.txt Also no comments from I do think though that my case is not uncommon and |
Yeah, pip has a The only thing about a flag for "pip compile" that includes the current environment is it would, presumably, be incompatible with options that let you resolve things that aren't your environment, e.g. different Python version, different platform, universal resolution etc. So to me it would make more sense to have |
Actually, it feels like with |
It's a little involved, but you could use constraints:
|
Hi! I'm trying to use
uv pip compile
to lock my dependencies for a docker image build. I've got a package already installed in my base image which is not present in any package index, so I need the dependency resolver to consider installed packages.An option which makes
compile
consider installed packages when resolving dependencies would solve that problem.I've already tried to hack
compile.rs
to consider installed packages here and my lock worked just fine!I've created a similar issue in
jazzband/pip-tools
a while ago but is seems like it's development is stale, so I'm happy to useuv
instead.P.S.: I'm very new to Rust so I'm afraid I won't be able to submit a ready to ship PR myself
The text was updated successfully, but these errors were encountered: