cython + scons + c++
stefan_ml at behnel.de
Thu Mar 8 15:59:38 CET 2012
Neal Becker, 08.03.2012 15:23:
> Is there a version of cython.py, pyext.py that will work with c++?
> I asked this question some time ago, but never got an answer.
> I tried the following code, but it doesn't work correctly. If the commented
> lines are uncommented, the gcc command is totally mangled.
> Although it did build my 1 test extension OK, I didn't use any libstdc++ - I
> suspect it won't link correctly in general because it doesn't seem to treat the
> code as c++ (treats it as c code).
> cyenv = Environment(PYEXT_USE_DISTUTILS=True)
> import numpy
I don't use Scons, so I don't know if running the compiler at a command
line level is the best way to do it in that build system. But I know that
some people on the Cython users mailing list use it, so you may want to ask
More information about the Python-list