Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294807 - dev-python/bpython-0.9.5.2-r1 doesn't respect eselect'ed python version
Summary: dev-python/bpython-0.9.5.2-r1 doesn't respect eselect'ed python version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 11:27 UTC by Nikolaj Šujskij
Modified: 2009-12-24 04:44 UTC (History)
0 users

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 Nikolaj Šujskij 2009-11-27 11:27:46 UTC
I've installed two Pythons (~amd64) and 2.6 eselected:

% eselect python list
Available python interpreters:
  [1]   python2.6 *
  [2]   python3.1

I expect bpython to be installed for both of them, and working with eselected version. But `/usr/bin/bpython` begins with #!/usr/bin/python3.1, so bpython
a) can't work with python 2.6;
b) may not work at all, since pygments may not be installed as a 3.1 package.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-28 18:45:44 UTC
/usr/bin/bpython is now renamed to /usr/bin/bpython-${Python_slot}.
Comment 2 Nikolaj Šujskij 2009-12-22 09:26:34 UTC
Excuse me, but what's the point?

Now we have two _identical_ files:

% diff /usr/bin/bpython-2.6 /usr/bin/bpython-3.1                    
1c1
< #!/usr/bin/python2.6
---
> #!/usr/bin/python3.1

Why not just be happy with '#!/usr/bin/python' interpreter like with most Python scripts? Or, alternatively, symlink /usr/bin/python to /usr/bin/bpython-${eselected_Python}, like it's done with Python itself.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-24 04:44:09 UTC
distutils_src_install() now renames Python scripts and generates appropriate wrapper scripts.