I want to deploy my python app, so planned to pack it as native .deb containing virtualenv on CI server and then distribute to servers. wheel_cache cant be used when using setup.py
with install_requires
. Moving all deps to requirements.txt
and installing via pip makes console_scripts
section from setup.py
no longer available. So how to install deployable app properly? Via pip install -r requirements.txt
(wheel cache speedup available) and then run e.g /path/to/venv/bin/python -m mypackage
or maybe leave setup.py
in addition to requirements.txt
(with blank install_requires
)?
Asked
Active
Viewed 75 times
2

Martijn Pieters
- 1,048,767
- 296
- 4,058
- 3,343

vitalii
- 595
- 4
- 9
-
Looks like I've found the answer in this [article](http://blog.miguelgrinberg.com/post/the-package-dependency-blues) – vitalii Jan 20 '16 at 09:00
-
If it's an app you definitely want `requirements.txt`http://blog.ziade.org/2013/04/13/declaring-dependencies-in-python/ – Mikko Ohtamaa Jan 25 '16 at 15:15