[Distutils] Package install failures in 2.6.3 - setuptools vs Distribute

Alex Grönholm alex.gronholm at nextday.fi
Tue Oct 6 08:20:48 CEST 2009


P.J. Eby kirjoitti:
> At 11:53 AM 10/5/2009 +0200, Lennart Regebro wrote:
>> 2009/10/5 Jeff Rush <jeff at taupro.com>:
>> > Very unfortunate, as in, it should NOT have happened.  And 
>> *especially*
>> > without any announcement on python.org or mention on the
>> > python-committers list of something this major.
>>
>> Well "this major"... It's a bug fix that breaks a setuptools 
>> monkey-patch.
>
> Subclassing distutils commands != monkeypatching.  If, say, numpy's 
> distutils extensions subclass build_ext and override that method, they 
> could have had the same problem.  Same for anybody else's distutils 
> extensions.
>
Setuptools subclasses distutils commands and then replaces the original 
classes with its own.
Example from setuptools/__init__.py:

import distutils.core
distutils.core.Command = Command

Isn't this exactly what monkey patching means?
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig



More information about the Distutils-SIG mailing list