Hello! It is possible to use pypi decorator with a...
# ask-metaflow
f
Hello! It is possible to use pypi decorator with a private package index?
1
a
Yep! It depends on which package index and how it is configured. we are actively working on enabling newer indices (gcp private registry is up next on our plate)
f
we use a self hosted pypi index. In our python projects we use that index using --extra-index-url option. It there a way to specify this in metaflow?
b
this should work out of the box in this case. metaflow reads the pip.conf from your machine when it is creating the environment for pypi, so the indexes should be visible. the caveat is that if there is authentication that is also required, the only supported scheme for this at the moment is if the auth is part of the url itself.
f
thanks, verified that works using env vars:
Copy code
PIP_EXTRA_INDEX_URL=https://<your pip server>/ python test_flow.py --environment=pypi run
💡 1