Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite other shebangs #305

Open
kapouer opened this issue Jun 30, 2020 · 3 comments
Open

rewrite other shebangs #305

kapouer opened this issue Jun 30, 2020 · 3 comments

Comments

@kapouer
Copy link

kapouer commented Jun 30, 2020

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
Copy link
Contributor

jhermann commented Jul 1, 2020

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

@kapouer
Copy link
Author

kapouer commented Jul 1, 2020

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

@jhermann
Copy link
Contributor

jhermann commented Jul 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants