Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506834 - dev-python/pip - add symlinks for all activated targets
Summary: dev-python/pip - add symlinks for all activated targets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-05 11:28 UTC by cel.gentoo
Modified: 2014-05-17 07:07 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 cel.gentoo 2014-04-05 11:28:47 UTC
A few months ago I asked for symlinks for ipython (see bug 496010). In my opinion pip would be another great candidate for these symlinks.
Comment 1 cel.gentoo 2014-04-10 19:57:07 UTC
I've had a short discussion on IRC - looks like some prefer using virtualenv instead of calling pip directly. Therefore they don't see a need for these symlinks.

I don't use virtualenv but set those requested links manually for my users. The downside is that one has to maintain these links if python targets change. But the same goes for virtualenv.

I still think this would be a good idea. Any further comments?
Comment 2 Jan Matějka (RETIRED) gentoo-dev 2014-04-11 00:43:25 UTC
  11 Apr 2014; Jan Matejka <yac@gentoo.org> +pip-1.5.4-r1.ebuild:
  Add convenience symlinks, fixes BGO#506834
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-11 14:04:00 UTC
Please do not reinvent the wheel when the upstream build system is perfectly capable of installing proper extra names itself. In fact, we're applying a patch to disable that... and then doing the same thing ourselves now.

I'm just not sure if we should let it install extra 'pip2' and 'pip3' as it does now.
Comment 4 Jan Matějka (RETIRED) gentoo-dev 2014-04-11 14:48:44 UTC
(In reply to Michał Górny from comment #3)
> Please do not reinvent the wheel when the upstream build system is perfectly
> capable of installing proper extra names itself. In fact, we're applying a
> patch to disable that... and then doing the same thing ourselves now.

Ok, I haven't noticed that. Will fix it at night or maybe tomorrow.

> I'm just not sure if we should let it install extra 'pip2' and 'pip3' as it
> does now.

Is there a reason not to?
Comment 5 Mike Gilbert gentoo-dev 2014-04-11 14:56:17 UTC
(In reply to Jan Matějka from comment #4)
> > I'm just not sure if we should let it install extra 'pip2' and 'pip3' as it
> > does now.
> 
> Is there a reason not to?

Does pip2 have a #!/usr/bin/python2 shebang? Or does it end up pointing at a script with a more specific shebang?

I ask because if we install them, I think users might expect them to be updated by eselect python. Or maybe not. ^_^
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-11 15:10:07 UTC
(In reply to Mike Gilbert from comment #5)
> (In reply to Jan Matějka from comment #4)
> > > I'm just not sure if we should let it install extra 'pip2' and 'pip3' as it
> > > does now.
> > 
> > Is there a reason not to?
> 
> Does pip2 have a #!/usr/bin/python2 shebang? Or does it end up pointing at a
> script with a more specific shebang?

They all get wrapped by python-exec. So 'pip2' runs with 2.6, 2.7 or pypy depending on EPYTHON, and 'pip3' runs with 3.2, 3.3 or 3.4. It's just like 'pip' but with limited impls.
Comment 7 Tim Harder gentoo-dev 2014-05-17 07:07:21 UTC
Fixed in 1.5.5. If someone cares that pip2/pip3 are installed feel free to bring back part of the old patch.