On May 4, 2009, at 1:53 PM, Lisandro Dalcin wrote: > On Mon, May 4, 2009 at 5:42 PM, Stefan Behnel <[email protected]> > wrote: >> Hi, >> >> I just tried to use the new main() embedding feature to compile a >> multi-module Python program. This doesn't seem to work as >> expected. What I >> would like to see is that when I say >> >> $ cython --embed somemain.py other1.py other2.py ... >> >> Cython should generate a .c file for each .py file and add a main() >> function only to the first module. This main() function should then >> register all other modules that were compiled at the same run, so >> that the >> resulting main program can become self-contained by simply >> compiling all .c >> files into a single executable. Since this is not how it currently >> works >> (instead, all .c files get their own main() function), we might >> want to at >> least disable the --embed option for multiple compilation in >> 0.11.2, so >> that people do not start relying on this. >> > > Unfortunatelly, I have to agree, for different reasons... As an > starter, the current code does not handle Py3K on Windows (because of > the new wchar_t based API)
This should be sufficient, right? http://hg.cython.org/cython-devel/rev/2e35d5caac86 - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
