Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383009 - dev-lang/python:{2.4,2.5}: Generic /usr/bin/python shebang in /usr/bin/pydoc{2.4,2.5}
Summary: dev-lang/python:{2.4,2.5}: Generic /usr/bin/python shebang in /usr/bin/pydoc{...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 02:45 UTC by Mike Gilbert
Modified: 2013-06-30 16:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2011-09-15 02:45:30 UTC
While testing a patch for bug 361867, I noticed that /usr/bin/pydoc2.4 and /usr/bin/pydoc2.5 have #!/usr/bin/python on the first line.

This causes them to display documentation for the currently active version of python rather than the expected version.
Comment 1 Ewoud Kohl van Wijngaarden 2011-11-21 12:59:15 UTC
I noticed that this has been fixed at least in 2.6.6-r2 on my system.

However, it now uses /usr/bin/python2.6 while using /usr/bin/env python2.6 would be more compatible with virtualenv.
Comment 2 Mike Gilbert gentoo-dev 2013-06-30 16:09:00 UTC
+*python-2.6.8-r2 (30 Jun 2013)
+*python-2.5.4-r6 (30 Jun 2013)
+
+  30 Jun 2013; Mike Gilbert <floppym@gentoo.org> +files/python-2.5-tcl86.patch,
+  +python-2.5.4-r6.ebuild, +python-2.6.8-r2.ebuild:
+  Apply patch to allow old python versions to use tk-8.6, bug 454342. Also fix
+  the python shebang in idle2.5 and pydoc2.5, bugs 275241 and 383009.