Re: shebang lines for Python scripts
* Scott Kitterman , 2011-03-04, 21:15: dh_python2 and dh_python3 cannot be used for the same files at the same time (that's why dh_python2 igores python3-* packages, that's why dh_python3 ignores python-* packages and that's why you have to use -N/-p in all other packages if you want to invoke both helpers) Wait, what, I cannot have a package that ship both python and python3 *scripts*? you can: Piotr Ożarowski wrote: (+ an option to disable this behaviour in both helpers) If you're going to push this forward, please call the option --without-bugs. I get that you're not in favor of this. What is the problem with the fixing shebangs by default? If you believe what policy says, /usr/bin/env python is something we should only have in Debian packages due to the maintainer deciding it's needed for some reason. 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 I showed a few mails ago) gives odd results even for fairly conventional shebangs. 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, -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110305190722.ga8...@jwilk.net
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 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110305201621.gz30...@piotro.eu