Search code examples
pythoncythondistutils

Get hold of warnings from cython pyximport compile (distutils build output?)


When I compile a cython .pyx file from IdleX the build shell window pops up with a bunch of warnings to close again after less than a second.

I think pyximport uses distutils to build. How can I write the gcc warnings to a file or have the output delay or wait for keypress?


Solution

  • I haven't done anything with cython myself but I guess you could use a commandline for the building. That way you would see all the messages until you close the actual commandline unless some really fatal error happens.