A Python package with various utilities that speed-up development of Decision Optimization projects in Watson Studio. Implements common tasks and provides best-practice guidelines to architect DO projects.
Apache License 2.0
4
stars
7
forks
source link
Package dependencies and optional dependencies #24
Currently, the dse-do-utils doesn't define dependencies.
It is up to the user to ensure the packages it requires are installed.
In some cases, the import statement is deep in the code and will only run if the code that depends on it is executed.
For instance, folium or sqlalchemy. This avoids the install of these packages if the related functionality of the dse-do-utils is never used.
This approach works, but there might be a better option with optional dependencies:
One of the extra could be 'CP4D', with requirements:
ibm_watson_studio_lib
decision-optimization-client
Discussion: since these packages are either not available in PyPI and definitely cannot run outside of CP4D, what happens with projects we develop both on CP4D and on local machine?
Currently, the dse-do-utils doesn't define dependencies. It is up to the user to ensure the packages it requires are installed.
In some cases, the import statement is deep in the code and will only run if the code that depends on it is executed. For instance, folium or sqlalchemy. This avoids the install of these packages if the related functionality of the dse-do-utils is never used.
This approach works, but there might be a better option with optional dependencies: