Hi, is there a way to use the `pip_base` (or other...
# ask-metaflow
l
Hi, is there a way to use the
pip_base
(or other pip decorator) to install from a git repo? Usually I would execute
pip install "mypackage @ git+..."
but wasn't sure if there was an equivalent way to do so with the decorator in a flow.
1
d
it should be supported by the pypi decorator. Definitely supported by the bleeding edge ones: https://docs.metaflow.org/scaling/dependencies/libraries#bleeding-edge-versions-of-the-decorators. SOmething like :
@pypi_base(packages={"mypackage": "git+https…"})
should work
1
lmk if it doesn’t work for you.
l
Which version of metaflow would support this? We're on an older version at the moment (2.9.15) so I just want to see how far we'd need to upgrade
d
the extension works from python 2.10.0 (so you just need to upgrade one version). For the vanilla decorators, I’d have to go back and check (I don’t use them so am not 100% sure).
if you don’t want to upgrade, I think you can get an older version of the extension too
that shouod support it too
l
Ok sounds good, thank you!