Re: [Cython] setup.py refusing to run cython
On 14 June 2011 16:20, Nathaniel Smith wrote: > Hello Cython folks, > > This message (see below) is the second report I've gotten of a very > strange build problem with a cython module. I'm just using the > standard 'from Cython.Distutils import build_ext', 'cmdclass = > {"build_ext": build_ext}' incantation, but for some reason setup.py is > attempting to just run gcc directly without calling cython first to > generate the .c file. > > You can see the setup.py here: > https://code.google.com/p/scikits-sparse/source/browse/setup.py?name=scikits.sparse-0.1 > > Anyone have any ideas? > Your setup.py is mixing setuptools and Cython.Distutils. Both are monkeypatching distutils, and in general that's a very bad idea. -- Lisandro Dalcin --- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo 3000 Santa Fe, Argentina Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] setup.py refusing to run cython
On Tue, Jun 14, 2011 at 12:39 PM, Lisandro Dalcin wrote: > On 14 June 2011 16:20, Nathaniel Smith wrote: >> Hello Cython folks, >> >> This message (see below) is the second report I've gotten of a very >> strange build problem with a cython module. I'm just using the >> standard 'from Cython.Distutils import build_ext', 'cmdclass = >> {"build_ext": build_ext}' incantation, but for some reason setup.py is >> attempting to just run gcc directly without calling cython first to >> generate the .c file. >> >> You can see the setup.py here: >> https://code.google.com/p/scikits-sparse/source/browse/setup.py?name=scikits.sparse-0.1 >> >> Anyone have any ideas? >> > > Your setup.py is mixing setuptools and Cython.Distutils. Both are > monkeypatching distutils, and in general that's a very bad idea. One way to get around this is to use http://wiki.cython.org/enhancements/distutils_preprocessing - Robert ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel