[Distutils] Versioned entry points

Nick Coghlan ncoghlan at gmail.com
Fri Mar 28 22:06:35 CET 2014

On 29 Mar 2014 06:20, "Vinay Sajip" <vinay_sajip at yahoo.co.uk> wrote:
> > Does anyone have any thoughts?
> Note that there is one situation where scripts for multiple Python
versions reside in the same directory: per-user site-packages (PEP 370). If
you install a package which has scripts and you don't write versioned
scripts, a second installation of that package (with a different Python
version) will cause the first script to be overwritten. Much of the time
this won't matter, but there might be scenarios where it does.
> It may also give a problem when uninstalling, or when verifying the
installation (as the hash of an overwritten script may not match what's
expected, as per the original installation).
> To avoid overwriting, one would need to write versioned scripts *only* :-)

Speaking of which, it's worth describing exactly what we had to do for
ensurepip. That has 3 configurations:

POSIX system default: pip3, pip3.4
Windows & venv default: pip, pip3, pip3.4
Alt install: pip3.4

There's currently an issue where "make altinstall && make install" is
slightly broken, as it won't add the missing "pip3" command.

So consider me in the school that suggests this be a standard installer
feature that can be applied to any entry point script, rather than
something that varies by project.


> Regards,
> Vinay Sajip
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140329/ccbb35fc/attachment.html>

More information about the Distutils-SIG mailing list