-
Notifications
You must be signed in to change notification settings - Fork 753
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
How to use different index url with pyproject.toml
when using uv pip compile
#4173
Comments
You should be able to do: [tool.uv.pip]
extra-index-url = ["https://download.pytorch.org/whl/cpu"] ...in your |
If you need Torch to be an optional dependency, we don't yet support development dependencies like that though it's coming soon (and already supported in [project.optional-dependencies]
dev = ["torch"] And then |
Thank you @charliermarsh, will give this a whirl. One last blocker if you would care to help me out.. Would you know how to install your project in editable mode? Is this possible?
I've been trying
But I can't see the project as editable inside the
|
I can answer this one. You want |
Thanks @patrick-kidger :) |
I'm trying to convert my Pipfile to a pyproject.toml, so that I can run:
uv pip compile pyproject.toml --generate-hashes -o requirements-lock.txt
The issue is I have a package, torch, that uses a different index in my Pipfile
How can I reproduce what my Pipfile is achieving here, and specify a different index url to install
torch
here? Ideally I'd like to keep this all contained withinpyproject.toml
- is this possible?P.S. loving the blazing speed of
uv
!The text was updated successfully, but these errors were encountered: