[Distutils] backwards compatibility of distutils?

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Thu May 15 02:37:01 2003


On Thu, May 15, 2003 at 11:26:42AM +1000, Anthony Baxter wrote:
> 
> >>> Andrew Kuchling wrote
> > The unknown question is if anyone has written setup.py files that
> > depend on fancy_getopt or distutils.log.  It seems unlikely, but I
> > don't know for sure, and breaking people's setup.py files is bad.
> > This also makes me paranoid about rearranging command classes
> > significantly.  
> 
> We could ask on comp.lang.python... I'll do this. 
> 
> "Do you know of setup.py files that are more complex than just 
>  a setup call with some usage of Extension?"
> 
> I know Richard Jones has a reasonably complex setup.py for roundup;
> it monkeypatches DistributionMetadata and does a bunch of work to 
> build the install list. 

PyXML's setup.py does some additional command line argument processing,
to check if some parts of the library should be installed or not.
There's also some work for Expat handling, and some workarounds for
Distutils 1.0 bugs on Windows. Some additional commands are also
provided (install_data for gettext data files), and there are some 
extensions for bdist_wininst.

http://pyxml.sf.net/

Fourthought has a huge extension of Distutils called PackageManager
(more than 3500 lines of code). I don't know how deeply it relies on the
core distutils. 

http://www.4suite.org/


-- 
Alexandre Fayolle
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Développement logiciel avancé - Intelligence Artificielle - Formations