From da35e24151a6bf77e98e4d68166cdfd372e6779f Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 29 Oct 2014 15:36:28 +0000 Subject: [PATCH] [SCons] Re-cythonize after changes to header files --- interfaces/cython/SConscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interfaces/cython/SConscript b/interfaces/cython/SConscript index cbf9f4a75..1680c9018 100644 --- a/interfaces/cython/SConscript +++ b/interfaces/cython/SConscript @@ -62,6 +62,11 @@ cythonized = localenv.Command('cantera/_cantera.cpp', ['cantera/_cantera.pyx'], for f in mglob(localenv, 'cantera', 'pyx', 'pxd'): localenv.Depends(cythonized, f) +for line in open('cantera/_cantera.pxd'): + m = re.search(r'from "(cantera.*?)"', line) + if m: + localenv.Depends('cantera/_cantera.cpp', '#include/' + m.group(1)) + script_ext = '.py' if os.name == 'nt' else '' localenv['py_ctml_writer'] = repr('scripts/ctml_writer%s' % script_ext) localenv['py_ck2cti'] = repr('scripts/ck2cti%s' % script_ext)