[Distutils] pip upgrade woes

Nick Coghlan ncoghlan at gmail.com
Tue Mar 24 23:32:07 CET 2015


On 25 Mar 2015 04:29, "Paul Moore" <p.f.moore at gmail.com> wrote:
>
> As a start, I'd suggest looking at writing some sort of independent
> purge-package command that you could use when you hit problems (pip
> install -U setuptools... weirdness happens, so purge-package
> setuptools; pip install setuptools). If all the scenarios that tool
> handles end up being clearly defined and low-risk, then it might be
> that there's scope for a "pip purge" command of some sort based on it,
> that removes all trace of a package even when the standard uninstall
> metadata isn't available.

I like this idea, especially if the tool was made aware of the system
package manager date stores (at least for apt and rpm) and could hence emit
the appropriate dependency respecting system command for removing them in
those cases rather than attempting to remove them directly.

> Maybe someone else here with more understanding of the history of
> easy_install and how eggs used to work (maybe still do, for all I
> know...) can offer something more specific. Sorry that I can't.

Jason already gave details for the egg case.

For purging "setup.py install" cases, a purge tool could potentially make
an educated guess by looking at the contents of a wheel or egg file from
PyPI (perhaps looking at both the oldest and newest release that provides
such files.

Cheers,
Nick.

> Paul
> _______________________________________________
> 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/20150325/8b97ffce/attachment-0001.html>


More information about the Distutils-SIG mailing list