https://pantsbuild.org/ logo
#general
Title
# general
a

adamant-magazine-16751

12/19/2022, 1:35 PM
Hi. Is it possible to use different --extra-index-url for different resolves. I'd like to use different versions of pytorch in different apps, but the difference between them is sometimes only in the index url. So for example I'd like to use pytorch from https://download.pytorch.org/whl/cpu in resolve_a and https://download.pytorch.org/whl/cu116 in resolve_b
e

enough-analyst-54434

12/19/2022, 3:42 PM
It is not. See here for the same feature request for different reasons: https://github.com/pantsbuild/pants/issues/17565 See here for the same exact use case, Pytorch is a problem we don't have a good way of dealing with right now: https://pantsbuild.slack.com/archives/C046T6T9U/p1663253653590359
a

adamant-magazine-16751

12/19/2022, 3:43 PM
Thanks for responding. It's a shame but it seems like pytorch is a problem for us all 😓
e

enough-analyst-54434

12/19/2022, 3:45 PM
https://github.com/pantsbuild/pants/issues/17565 will definitely solve it, we just need someone in the community to find the time and step up and implement it.
3 Views