On Wed, 28 Jun 2006 13:46:07 -0600 "Fernando Perez" <[EMAIL PROTECTED]> wrote:
> On 6/28/06, David M. Cooke <[EMAIL PROTECTED]> wrote: > > > [Really, distutils sucks. I think (besides refactoring) it needs it's API > > documented better, or least good conventions on where to hook into. > > setuptools and numpy.distutils do their best, but there's only so much you > > can do before everything goes fragile and breaks in unexpected ways.] > > I do hate distutils, having fought it for a long time. Its piss-poor > dependency checking is one of its /many/ annoyances. For a package > with as long a compile time as scipy, it really sucks not to be able > to just modify random source files and trust that it will really > recompile what's needed (no more, no less). > > Anyway, thanks for heeding this one. Hopefully one day somebody will > do the (painful) work of replacing distutils with something that > actually works (perhaps using scons for the build engine...) Until > then, we'll trod along with massively unnecessary rebuilds :) I've tried using SCons -- still don't like it. It's python, but it's too unpythonic for me. (The build engine itself is probably fine, though.) A complete replacement for distutils isn't needed: bits and pieces can be replaced at a time (it gets harder if you've got two packages like setuptools and numpy.distutils trying to improve it, though). For instance, the CCompiler class could be replaced in whole with a rewrite, keeping what could be considered the public API. I've done this before with a version of UnixCCompiler that let me specify a "toolchain": which C compiler and C++ compiler worked together, which linker to use for them, and associated flags. I'm working (slowly) on a rewrite of commands/build_ext.py in numpy.distutils that should keep track of source dependencies better, for instance. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |[EMAIL PROTECTED] Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion