This question tries to complement this one .
I have a python app which uses third party modules from PyPI. I want to package my app into a debian package, but don't know how to handle python dependencies which are not in debian/ubuntu repositories(packed as debian packages too)
Solution #1:
build the modules from PyPI right into my debian package.
Solution #2:
create debian packages for all PyPI modules I need using stdeb and add them to debian/ubuntu repositories.
I actually need a Solution #3 because I want to install PyPI dependencies when I install my debian package, preferably into a virtualenv!
What would be Solution #3? Do I need to tweak DEBIAN/preinst maintainer script?