[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shebang lines for Python scripts



[Jakub Wilk, 2011-03-05]
> * Piotr Ożarowski <piotr@debian.org>, 2011-03-04, 23:23:
>> any objections to change all shebangs (that do not match
>> /usr/bin/python\d(\.\d+) but do math .+python.* regexp) to
>> /usr/bin/python¹ in dh_python2 and to /usr/bin/python3 in
>> dh_python3?
>
> dh_python2 would change "/usr/bin/env python3" to "/usr/bin/python";
> dh_python3 would change "/usr/bin/env python" to "/usr/bin/python3".
>
> No, thank you, that's wrong.

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)
-- 
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: