spotify / dh-virtualenv

Python virtualenvs in Debian packages

Home Page:http://dh-virtualenv.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python,orig file is not removed from ${VIRTUALENV}/bin/

lez opened this issue · comments

When the system interpreter differs from the one in the deb package, the postinst script (added by dh_virtualenv) overwrites the virtualenv interpreter to the system version. The original interpreter is kept under the name python,orig.

I'm not sure if this file is supposed to stay there as a backup and removed by the package's prerm script, or it can already be removed already in postinst script. Either in postinst or prerm, I'm happy to write the patch that removes this file automatically.

prerm would be the proper place. A PR would be great.