[Python-Dev] PEP 376

Nick Coghlan ncoghlan at gmail.com
Thu Jul 2 13:32:57 CEST 2009


Tarek Ziadé wrote:
> On Wed, Jul 1, 2009 at 10:20 AM, Michael Foord<fuzzyman at voidspace.org.uk> wrote:
>>> Uninstall as a command feels a little weird. Since "python setup.py
>>> [some-command]" implies that the setup.py contains information about the
>>> distribution that the command is being applied to. So instead of:
>>>
>>> $ python setup.py uninstall some_package
>> It could be:
>>
>>   $ python -m distutils uninstall some_package
>>
>> Asymmetrical with the install of course.
>>
> 
> Yes exactly, I was going to add:
> 
> $ python -m distutils.uninstall some_package

A directly executable submodule is an even better idea than making
distutils itself executable. Definitely worth mentioning in the PEP in
the section on uninstallation support.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-Dev mailing list