On Apr 23, 2012, at 1:28 PM, Stefan Behnel wrote:
> Hmm, that line basically just says "PyCFunction_Call", which is a function
> exported by CPython. I wonder why gcc would consider this "not a constant".
>
> Could you check if the preprocessor (gcc -E, with all the above includes)
> also sees tha
I've encountered the following issue with Cython 0.16 on Windows with using the
Mingw32 compiler (I'm using Python 3.2 here, but I don't think that's the
issue):
$ python3 setup.py build -c mingw32
running build
running build_py
running build_ext
skipping 'SnapPy.c' Cython extension (up-to-date)
On Apr 22, 2012, at 1:22 PM, Vitja Makarov wrote:
> Oops, it seems to be a problem with locals() dict creation.
Yes it does. The following variants of my original example both work:
## prob.pyx version 1
def cy_eval(s):
return eval(s)
def f(x):
cdef int* p
return cy_eval(x)
## p
With Cython 0.15, the following works with Python 2.7:
### start file: prob.pyx
def f(x):
cdef int* p
return eval(x)
### end file
>>> import pyximport; pyximport.install()
>>> import prob
>>> prob.f("5")
5
but with Cython 0.16 it doesn't even compile:
>>> import prob
Error compiling
Dear all,
On OS X Snow Leopard with XCode 3.2.*, I encountered the following issues when
using "easy_install" to install the new Cython 0.16:
(a) With Python 2.7 where Cython 0.15.1 had previously been installed,
"easy_install" failed with the below error message; looks like it's somehow
using