Skip to content

Commit

Permalink
Make SCons rebuild Cython module after change to .pxd
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Apr 2, 2014
1 parent 6edfe73 commit 5ed2600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def compile_cython(target, source, env):
cythonize([f.abspath for f in source])

env.Command('python/ember/_ember.cpp', ['python/ember/_ember.pyx'], compile_cython)
env.Depends('python/ember/_ember.cpp', 'python/ember/_ember.pxd')

cyenv = env.Clone() # environment for compiling the Cython module
cyenv.Prepend(CPPPATH='src', LIBPATH='build/core', LIBS=corelib)
Expand Down

0 comments on commit 5ed2600

Please sign in to comment.