spotify/dh-virtualenv

rewrite other shebangs

kapouer opened this issue · 3 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