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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
To reduce the install footprint and make the large packages optional, you can utilize Poetry's extras feature. Extras allow you to specify optional dependencies that can be installed only when needed. Here's how you can modify your pyproject.toml to make the large packages optional:
Uncomment the [tool.poetry.extras] section and list the large packages as optional dependencies.
75b1968
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reduce the install footprint and make the large packages optional, you can utilize Poetry's extras feature. Extras allow you to specify optional dependencies that can be installed only when needed. Here's how you can modify your
pyproject.toml
to make the large packages optional:[tool.poetry.extras]
section and list the large packages as optional dependencies.Here is your modified
pyproject.toml
:With this setup, you can install the base dependencies using:
And you can install additional optional dependencies as needed:
poetry install --extras "nlp"
or
poetry install --extras "db"
or all optional dependencies:
poetry install --extras "all"
This will help reduce the default install footprint by only including essential dependencies.