stale-waitress-56895
07/07/2025, 12:47 PM[python-repos]
indexes = [
"https://%(env.TWINE_USERNAME)s:%(env.TWINE_PASSWORD)s@europe-python.pkg.dev/xxxxx/simple/",
"https://%(env.TWINE_USERNAME)s:%(env.TWINE_PASSWORD)s@europe-west4-python.pkg.dev/xxxxx/simple",
"<https://download.pytorch.org/whl/cu124>",
]
find_links = ["<https://data.pyg.org/whl/torch-2.6.0%2Bcu124.html>"]
how do I tell pants to explicitly get torch from the cuda repository? At the moment it's coming from one of the othersstale-waitress-56895
07/07/2025, 12:49 PM[tool.uv.sources]
where I can specify where a dependency is coming fromcurved-manchester-66006
07/07/2025, 2:17 PMpip
(part of why https://peps.python.org/pep-0766/ exists) that is easy to reason about
I think in larger enterprise environments that is often often solved with a proxy-ing package host with some sort of prioritization.