Sorry for being new to Anaconda (and Cython).
I used Anaconda 64-bit Python 3.4 Windows.
Where did Anaconda do all these settings for Cython? I have a test code called cy_test.pyx
as follows:
import numpy as np
cpdef double [:] func():
cdef double [:] a = np.arange(10.)
return a
And then, Instead of
import pyximport, numpy
pyximport.install(setup_args={"script_args":["--compiler=mingw32"], "include_dirs":numpy.get_include()})
I only need to run import pyximport; pyximport.install()
. Then I can use
import test_cy
a = test_cy.func()
print(list(a))
It just worked, without me telling it to include the numpy.get_include()
.
My question is, where is this being set? There should be a configuration file somewhere, right?
-Shawn