Message147989
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). |
|
Date |
User |
Action |
Args |
2011-11-20 14:20:19 | eric.araujo | set | recipients:
+ 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:19 | eric.araujo | set | messageid: <1321798819.2.0.523111456654.issue10318@psf.upfronthosting.co.za> |
2011-11-20 14:20:18 | eric.araujo | link | issue10318 messages |
2011-11-20 14:20:18 | eric.araujo | create | |
|