Deploying a project with spaCy model dependency [ en_core_web_sm
for example] to PyPi.
#10932
-
So we're trying to release our project to PyPi and have a dependency on the
We're using
Is there a way around this? Any ideas would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The best way to handle non-PyPI dependencies is to have a download step that needs to be executed after your project is installed, similar to how spaCy has the |
Beta Was this translation helpful? Give feedback.
The best way to handle non-PyPI dependencies is to have a download step that needs to be executed after your project is installed, similar to how spaCy has the
download
command. I'm not familiar with Poetry, but basically you would remove the model as a dependency, check if it's installed at runtime, and if not, install it or fail with an error and tell the user how to install it.