Archive for August, 2008

numscons and cython

numscons 0.9.2 has just been released. The main feat of this release is cython support: I implemented a small cython tool during the cython tutorial at scipy08, and now, you can build a cython extension from .py or .pyx:

from numscons import GetNumpyEnvironment
env = GetNumpyEnvironment(ARGUMENTS)
# cython tool not loaded by default
name = "cython"
env.Tool(name)
# Build a python extension from yop.py
env.DistutilsPythonExtension(source = ["yop.py"])

The example can be found in test/examples/cython in numscons sources. This is preliminary, since there is no way to pass option to cython generation.



a

 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031