On 3/18/07, Bob Ippolito <[EMAIL PROTECTED]> wrote:
> I've just added a small optional C extension to simplejson to speed up
> decoding, but I have a feeling that it's going to cause problems for
> Windows users.
>
> Right now it's specified as setuptools Feature the same way that
> PyProtocols' speedups module is implemented.
>
> Is there something I can do in the setup.py to fail gracefully and
> install anyways if it can't compile the extension? In some way that's
> compatible with easy_install?

Twisted does this: it subclasses build_ext and overrides
build_extensions to check if there's a C compiler before upcalling.


-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to