rewrite other shebangs
kapouer opened this issue · 3 comments
kapouer commented
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 !
jhermann commented
This is what overrides in the rules file are for, allowing customization in the different build / install steps.
kapouer commented
Yes, but: rewriting a shebang is not that trivial, and is very related to virtualenv shortcomings (as virtualenv do rewrite all shebangs).
jhermann commented
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