[Distutils] conditionally compiling extensions

Christopher Armstrong radix at twistedmatrix.com
Mon Mar 5 22:10:59 CET 2007

On 3/5/07, Phillip J. Eby <pje at telecommunity.com> wrote:
> I'm definitely interested in solving this and related problems, but I have
> very few ideas about how to do it.

So, it seems it would be pretty trivial to do some refactoring of
distutils itself to make the point we need to hook into more hookable.
The heinous hack in Twisted is there because there are many points in
distutils that say "are there any Extensions specified right now? Ok,
then early-out"; but we want it to keep going until the point  that
it's created the Compiler and calls build_extensions, where we
*actually* calculate what Extensions we need to call.

The problem is that even if I make the necessary changes to distutils,
it will be 6 years before I'm able to use them, unless I decide to
package distutils *with* Twisted, which would be a huge PITA.

Christopher Armstrong
International Man of Twistery

More information about the Distutils-SIG mailing list