-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
--extra-index-url
not propagating to indirect dependencies
#2047
Comments
Thanks for the analysis! This sounds like a bug to me. |
@jamesbraza does |
Yeah it does if you just |
With Python 3.12.2, pip 24.0, and pip-tools from main, I successfully compiled a |
@AndydeCleyre it's unsurprising because PyTorch 2.2 started supporting 3.12. The error only happens with |
accelerate
indirectly depends ontorch
torch
only supports Python 3.12 in its nightly dev builds, which requireshttps://download.pytorch.org/whl/nightly
extrapip-compile --extra-index-url=https://download.pytorch.org/whl/nightly
will not use the extra foraccelerate
Environment Versions
$ python -V
Python 3.12.1 (main, Jan 6 2024, 20:42:19) [Clang 14.0.3 (clang-1403.0.22.14.1)]$ pip --version
23.3.2$ pip-compile --version
7.3.0Steps to replicate
Run:
pip-compile --extra-index-url=https://download.pytorch.org/whl/nightly
Expected result
Successful compilation of both the above
requirements.in
Actual result
Second
requirements.in
above will fail to compile with the below error:The text was updated successfully, but these errors were encountered: