[Test] Fix dependencies so Cython tests run after rebuilding
This commit is contained in:
parent
21d90495d2
commit
a616d4f55f
2 changed files with 4 additions and 0 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue