This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients allan, belopolsky, benjamin.peterson, docs@python, eric.araujo, eric.smith, ezio.melotti, georg.brandl, jcea, ncoghlan, ned.deily, orsenthil, python-dev, r.david.murray
Date 2011-11-20.14:20:18
SpamBayes Score 6.11583e-12
Marked as misclassified No
Message-id <1321798819.2.0.523111456654.issue10318@psf.upfronthosting.co.za>
In-reply-to
Content
The patches I’ve discussed and committed were actually peripheral.  The original bug reported here is that shebangs shouldn’t use “/usr/bin/env python” with an altinstall installation, as in that case you’re not creating a python (or python3) binary but a pythonx.y, so the shebangs should refer to that exact x.y versions.

The few scripts from Tools/scripts (idle, pydoc, 2to3, python-config) are installed with an x.y suffix and hard-code the Python version and location at build time, by using distutils.  (That’s why Nick reports the only matches for “3.2” found by grep are in the build/scripts directory.)

The stdlib modules do use “/usr/bin/env python[3]”.  I see various ways to handle that:
a) Reject the bug as works for me: these are stdlib modules, not scripts, they can be imported or executed with -m, they’re not symlinked (by us) from anywhere so the bug, while technically valid, has no real effect.

b) Further complicate the build/install machinery to update shebangs in altinstall mode.

c) Remove useless shebangs and execute bit in the stdlib.

My preference is to do c) for 3.3 and nothing for the stable versions.

(About wrongly using python in Python 3 docs: I’ll open another bug for that).
History
Date User Action Args
2011-11-20 14:20:19eric.araujosetrecipients: + eric.araujo, georg.brandl, jcea, ncoghlan, belopolsky, orsenthil, eric.smith, benjamin.peterson, ned.deily, ezio.melotti, r.david.murray, docs@python, allan, python-dev
2011-11-20 14:20:19eric.araujosetmessageid: <1321798819.2.0.523111456654.issue10318@psf.upfronthosting.co.za>
2011-11-20 14:20:18eric.araujolinkissue10318 messages
2011-11-20 14:20:18eric.araujocreate