[Distutils] PEP 439 and pip bootstrap updated

Barry Warsaw barry at python.org
Wed Jul 10 17:21:41 CEST 2013

On Jul 10, 2013, at 02:43 PM, Paul Moore wrote:

>I would find it distinctly irritating if in Python 3.4 I have to type "pip3
>bootstrap" to bootstrap pip - and even worse if *after* the bootstrap the
>command I use is still "pip". (And no, there is currently no "pip3" command
>installed by pip, and even if there were, I would not want to use it, I'm
>happy with the unsuffixed version).

I have a lot of sympathy for this, and the general issue has come up in a
number of different contexts, e.g. nostests/nosetests3 and so on.  On a distro
like Debian, this just adds more gunk to /usr/bin, especially since some
scripts are also minor-version dependent.

One approach is to use `$python -m nose` or in this case `$python -m pip`
which cuts down on the number of scripts, is unambiguous, but is far from
convenient and may not work in all cases, e.g. for older Python's that don't
support -m or don't support it for packages.

I think there was a thread on python-ideas about this, but in the back of my
mind, I have this horrible idea for a version-aware relauncher you could use
in your shebang line.  Something like:

#! /usr/bin/pylaunch

So that you could do something like:

$ nosetests -3
$ nosetests -2
$ nosetests -3.3
$ nosetests -2.7

and it would relaunch itself using the correct Python version, consuming the
version argument so the actual script wouldn't see it.

I'm not sure if the convenience is worth it, and I'm sorry for making you
throw up a little in your mouth there.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130710/6147c18a/attachment.pgp>

More information about the Distutils-SIG mailing list