[Test] Fix dependencies so Cython tests run after rebuilding

This commit is contained in:
Ray Speth 2013-07-16 22:09:53 +00:00
parent 21d90495d2
commit a616d4f55f
2 changed files with 4 additions and 0 deletions

View file

@ -145,6 +145,7 @@ if localenv['python3_package'] == 'y':
'setup3.py',
build_cmd))
env['python3_module'] = mod
env['python3_extension'] = ext
localenv.AddPreAction(ext, Delete('interfaces/cython/cantera/_cantera.cpp'))
@ -173,6 +174,7 @@ if localenv['python_package'] == 'new':
'setup2.py',
build_cmd))
env['python2_module'] = mod
env['python2_extension'] = ext
localenv.AddPreAction(ext, Delete('interfaces/cython/cantera/_cantera.cpp'))

View file

@ -164,6 +164,7 @@ elif localenv['python_package'] == 'new':
pyTest = addTestScript('cython2', 'python', 'runCythonTests.py',
interpreter='$python_cmd',
dependencies=(localenv['python2_module'] +
localenv['python2_extension'] +
mglob(localenv, '#interfaces/cython/cantera/test', 'py')),
env_vars={'PYTHONPATH':Dir('#build/python2').abspath})
localenv.Alias('test-cython2', pyTest)
@ -173,6 +174,7 @@ if localenv['python3_package'] == 'y':
pyTest = addTestScript('cython3', 'python', 'runCythonTests.py',
interpreter='$python3_cmd',
dependencies=(localenv['python3_module'] +
localenv['python3_extension'] +
mglob(localenv, '#interfaces/cython/cantera/test', 'py')),
env_vars={'PYTHONPATH':Dir('#build/python3').abspath})
localenv.Alias('test-cython3', pyTest)