[Steve Langasek, 2012-10-25] > On Thu, Oct 25, 2012 at 10:56:05AM -0400, Barry Warsaw wrote: > > Using -E fixed the immediate bug, but I think it is generally useful to > > include -s also, so as to avoid any potential breakage of system scripts by > > things users may have added locally. > > If there's consensus that this should be dealt with in the packages, best > would be to update the tooling (IIRC dh_python* already have some support > for shebang rewrites?) and add a lintian warning, foregoing any mass bug > filing.
dh_python2 --shebang '/usr/bin/python -Es' dh_python3 --shebang '/usr/bin/python3 -Es' should do the trick. I don't think adding -Es by default is a good idea (although it's very tempting). I can add --ignore-custom-site-dirs-in-scripts option to extend existing args in shebangs if you think such option would help. -- 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/20121025193418.gc8...@piotro.eu