Is it possible to have conditional pypi indexes? A...
# general
h
Is it possible to have conditional pypi indexes? An example case for this is say a subset of our projects use private packages and hence need to pull from a private pypi repo. Ideally, the setup/auth required for doing so could be skipped if not needed i.e. if only touching parts of the dependency graph that use public packages. This would be especially useful for things like
gcloud auth
that I’m currently solving with a
.pants.bootstrap
step but this depends on the
gcloud
cli being available as well as the correct user auth. Skipping this where possible would improve builds times and reduce confusing errors when they’re not available.