https://pantsbuild.org/ logo
p

polite-angle-82480

05/05/2023, 3:38 PM
Is there a way to pass the
PIP_EXTRA_INDEX_URL
args when installing plugin deps in pants.toml’s
[GLOBAL].plugins
section? We have a package in our Artifactory that Pants can’t install since it doesn’t know where the package is.
h

happy-kitchen-89482

05/05/2023, 3:44 PM
Have you looked at the
python-repos
subsystem? That is how you configure custom package repos for general use, I'm AFK and not sure if it is consulted during plugin resolution though.
👀 1
p

polite-angle-82480

05/08/2023, 9:50 PM
Looks like
python-repos
doesn’t apply to plugin resolution, we already had this in
pants.toml
Copy code
[python-repos]
indexes.add = ["%(env.PIP_EXTRA_INDEX_URL)s"]
The issue must be something else. For the tip though!
h

happy-kitchen-89482

05/08/2023, 10:48 PM
Dammit, that seems like a bug in plugin resolution then!