1
Howto build cython code with Scons
2
==================================
7
My own entry points was [1]. Copy this directory into your project under::
9
project_root/site_scons/site_tools/
11
Now add to your top level SConscript::
13
env = Environment(PYEXT_USE_DISTUTILS=True)
18
You can now build Cython Extensions using the PythonExtension builder::
20
env.PythonExtension("blah", ["blah.pyx"])
22
The builder is aware of cython dependencies residing in the search paths
23
given by CYTHONPATH. Dependency tracking is then automatically done by scons.
25
[1] http://www.mail-archive.com/cython-dev@codespeak.net/msg09540.html
30
The builders define some configuration variables which you can set like so::
32
env.Append(CYTHONPATH = ["thisdirectory"]) # add a directory to cythons search path
34
Have a look at cython.py and pyext.py for finding them.