What is the best way to distribute dependencies for an app?
Let's say I want to publish an app that depends on SqlAlchemy - is there a clean way to include SqlAlchemy in my repository without forcing the user to install it?
Community standard is to use pip package manager with requirements file.
E.g.
SQLAlchemy>=0.9.8
It would force installing SQLAlchemy with version above or equal to 0.9.8.
If you want to distribute your code in standalone way, you may consider creating separate directory for 3rd party packages and extending PYTHONPATH environment variable.
export PYTHONPATH=$PYTHONPATH:/path/to/3rdpartypackages/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With