[Distutils] setuptools special case Pyrex and break Cython

Stefan Behnel stefan_ml at behnel.de
Wed Sep 5 22:21:29 CEST 2007

Phillip J. Eby wrote:
> At 09:49 PM 9/5/2007 +0200, Stefan Behnel wrote:
>> get a build_ext replacement, which is
>> required by both Pyrex and Cython.
> No, it isn't.  A setuptools-based project does not need to import
> *anything* from Pyrex; it just declares a setuptools Extension() with
> .pyx sources.
> But this assumption
> about replacing build_ext being necessary is clearly a big part of
> what's leading us to different conclusions.

Ah, I missed that part. So setuptools special cases Pyrex in other places,
too, thanks for pointing that out.

Maybe I should really consider adding a Pyrex replacement to Cython... but
that needs to be discussed on the cython-dev list.

I still wouldn't mind having a few additional if-Pyrex-import-fails-try-Cython
lines in setuptools for now...


More information about the Distutils-SIG mailing list