I have a python project that has a few dependencies (defined under install_requires
in setup.py). My ops people requires a package to be self contained and only depend on a python installation. The litmus test would be that they're able to get a zip-file and then unzip and run it without an internet connection.
Is there an easy way to package an install including dependencies? It is acceptable if I have to build on the OS/architecture that it will eventually be run on.
For what it's worth, I've tried both setup.py build
and setup.py sdist
, but they don't seem to fit the bill since they do not include dependencies. I've also considered virtualenv
(which could be installed if absolutely necessary), but that has hard coded paths which makes it less than ideal.
pip install -r requirements.txt
is not acceptable? – Conjunction--target
. Thanks. – Cellulose