Hello folks, I have multiple python-repos setup, l...
# general
s
Hello folks, I have multiple python-repos setup, like this
Copy code
[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 others
1
basically looking for the equivalent
[tool.uv.sources]
where I can specify where a dependency is coming from
c
I don't think there is a way to do that today with
pip
(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.
1