You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user specifies Python options with wheels as empty list instead of None, bentoml will create the wheel directory, causing install.sh to fail because it tries to install *.whl from the wheels directory, but there are no wheel files inside.
This is normally not an issue because the user is expected to create a bentofile.yaml and use the bentoml CLI to build their bentos (and the user will typically not specify the wheels section at all if there are none), but in specific workflows where it is more convenient to use the bentoml Python interface to build bentos (e.g. when the user is using a notebook-centric environment like Databricks), the user may specify an empty list for wheels instead of None.
It is fairly simple to workaround this (we can specify None instead of empty list when calling bentoml.bentos.build()), but it would be nice if it could work with empty list as well. I can work on this, just let me know if it's ok to proceed.
Describe the bug
When the user specifies Python options with
wheels
as empty list instead ofNone
, bentoml will create the wheel directory, causinginstall.sh
to fail because it tries to install*.whl
from the wheels directory, but there are no wheel files inside.This is normally not an issue because the user is expected to create a
bentofile.yaml
and use the bentoml CLI to build their bentos (and the user will typically not specify the wheels section at all if there are none), but in specific workflows where it is more convenient to use the bentoml Python interface to build bentos (e.g. when the user is using a notebook-centric environment like Databricks), the user may specify an empty list for wheels instead ofNone
.It is fairly simple to workaround this (we can specify
None
instead of empty list when callingbentoml.bentos.build()
), but it would be nice if it could work with empty list as well. I can work on this, just let me know if it's ok to proceed.I believe the check should be simplified to
if self.wheels
, so it covers the case of empty list as well.To reproduce
No response
Expected behavior
No response
Environment
bentoml: 1.0.8 onwards
Python: 3.8
The text was updated successfully, but these errors were encountered: