Re: shebang lines for Python scripts
[Jakub Wilk, 2011-03-05]
> I'm not convinced it's only about getting rid of "/usr/bin/env". Piotr
> didn't give any rationale for the proposed changed and his algorithm (as
sorry, we talked about pytohn-dev thread on #debian-python and when I
saw Barry's mail on debian-python@ I just assumed everyone knows why I'm
proposing it
[...]
> For what it's worth, I'd OK with Python helpers doing this:
>
> s,^#!\s*/usr/bin/env\s+(python[0-9.]*(-dbg)?)\b,#!/usr/bin/\1,
that's what I wanted since the beginning, sorry for lame regexp (which
was missing a "?", BTW), again, I just assumed everyone read "Support
the /usr/bin/python2 symlink upstream" thread (and as you can read
there, I'm actually against /usr/bin/python2, my proposal here is just
to make the mess less messy)
--
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl www.griffith.cc www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Reply to: