on `bentoml build` I end up with: ```shutil.Error:...
# ask-for-help
m
on
bentoml build
I end up with:
Copy code
shutil.Error: Destination path '/home/matej/bentoml/tmp/tmptvzmstoibentoml_bento_equivision/env/python/wheels/mmdet-3.3.0.tar.gz' already exists
The sdist is made twice and fails after second round: https://gist.github.com/smidm/2c1f914ce5289b999a213dd747110f1f Any clue how to diagnose this?
Solved this... I was confused with the way bentoml treats sources. I'm using local modules located in
./src/
and I thought that the best way to make the modules available in the bento is to install the whole package with
Copy code
Image(...).pyproject_toml('pyproject.toml')
or
Copy code
Image(...).run("pip install .")
I removed these and I build the bento now with:
Copy code
bentoml build -f pyproject.toml ./src/
The
./src
context makes my modules available in the bento. This could be probably better documented.