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

rewrite other shebangs

kapouer opened this issue · comments

Hi,

using version ac6e1b1
some scripts installed by setup.py have a custom shebang in awx.
Once installed they are not rewritten by dh-virtualenv (because it searchs only for python and al.).

dh-virtualenv could either:

  • search for other "absolutes" shebangs
  • give a way to configure which interpreters must trigger a shebang rewrite (here it would be awx-python).

Thanks !

This is what overrides in the rules file are for, allowing customization in the different build / install steps.

Yes, but: rewriting a shebang is not that trivial, and is very related to virtualenv shortcomings (as virtualenv do rewrite all shebangs).

Yes, but: rewriting a shebang is not that trivial, and is very related to virtualenv shortcomings (as virtualenv do rewrite all shebangs).

Fits my definition of trivial:

python -m zipapp -p /bin/true -o out in