This message was deleted.
# ask-for-help
s
This message was deleted.
c
Most commonly we see users uploading their own packages to their own private PyPI registry, and use the index_url option in
bentofile
to specify where to download the package
Another option is to build a python wheel and include it in your bento: https://docs.bentoml.org/en/latest/concepts/bento.html#python-wheels
If your package is open source and available on github, you could also have something like this:
Copy code
python:
    packages:
    - "git+<https://github.com/username/mylib.git@main>"
also if you only need one
util.py
file, you can try creating a reference to the file in your bentoml project directly and import it using relative path and include the file in your `bentofile.yaml`’s include field. BentoML will be able to find the original file and package it. But it comes with limitations - if
util.py
import other local packages, it may break
t
cool, thank you... I did get it working with a wheel, but it felt brittle. I'll try the reference approach.