2009/3/31 Lisandro Dalcin <[email protected]>: > So setup.py should not do a lot of work. We have two ways to make this > possible. > > 1) push your patch, but let future Cython releases zip/tarballs ship C > sources. > 2) implement this the right way, more or less in the spirit of > numpy.distutils build_src command.
For other readers, source is here : http://projects.scipy.org/numpy/browser/trunk/numpy/distutils/command/build_src.py > Just to be clear, I'm +1 on your patch. However, I wanted to point out > that this still is not the definitive solution. And I couldn't agree more with you. I looked at ways to avoid the extra setup.py work, it seems there's no "easy way" here. I thought about extending the distutils build command to build the c files before the module build, but it's definitely not simple: if the C files are correctly generated, one would need to register the C extensions on the fly, once the build process has already started; and I'm not sure that this is possible. And yes, if it is not possible, one would need to write a complex build system handling the whole compilation chain. In short, I agree, but I don't feel confident enough with distutils to build a à la numpy build_src command :) -- Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ] _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
