I need to create a Debian package for a python library, but I want to install the python library dependencies in a virtualenv, what will be best way to do that
1) I cannot install the dependencies in pre-install as I need to to create the virtualenv in my python code directory ( where python code is copied after installation )
2) I cannot install the dependencies in post- installation because if the dependency installation fails or some error is there, then too package version is bumped
3) During installation, I can write up a bash script to create a virtualenv and install dependencies and run it using Makefile , will that be a right thing to do ?