ersilia-os / ersilia-pack

Module to pack Ersilia models with FastAPI
GNU General Public License v3.0
0 stars 0 forks source link

Edge cases in pip depedency handling #21

Open DhanshreeA opened 2 days ago

DhanshreeA commented 2 days ago

The dependency parser should be extended to handle dependencies of the form:

pip install git+https://github.com/bp-kelley/descriptastorus.git@d552f934757378a61dd1799cdb589a864032cd1b

Currently it expects four parameters in a pip install command, ie, pip, install, dependency, and version. This approach would clearly fail for when wheel files/paths/urls are provided.

DhanshreeA commented 2 days ago

Adding to this:

How we end up rewriting the values from a yam to a pip command would also not take into account additional parameters for example, something like,

pip install torchvision==0.17.1  --index-url https://download.pytorch.org/whl/cpu