mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-09 04:28:30 -05:00
Use the minimal Python interface for tests when others are not built
If no full or minimal Python interface is being built, copy the minimal interface into the build directory and use the sys.executable to run it, so the tests that require CTML or CTI conversion can run.
This commit is contained in:
committed by
Ray Speth
parent
136c86636e
commit
1635cd2e04
+5
-4
@@ -209,14 +209,15 @@ def addMatlabTest(script, testName, dependencies=None, env_vars=()):
|
||||
|
||||
return run_program
|
||||
|
||||
if localenv['python_package'] in ('full', 'minimal'):
|
||||
if localenv['python2_package'] in ('full', 'minimal'):
|
||||
python_env_vars = {'PYTHONPATH': localenv['pythonpath_build2'],
|
||||
'PYTHON_CMD': localenv.subst('$python_cmd')}
|
||||
elif localenv['python3_package'] == 'y':
|
||||
'PYTHON_CMD': localenv.subst('$python2_cmd')}
|
||||
elif localenv['python3_package'] in ('full', 'minimal'):
|
||||
python_env_vars = {'PYTHONPATH': localenv['pythonpath_build3'],
|
||||
'PYTHON_CMD': localenv.subst('$python3_cmd')}
|
||||
else:
|
||||
python_env_vars = {} # Tests calling ck2cti or ctml_writer will fail
|
||||
python_env_vars = {'PYTHONPATH': '../../build/python_minimal',
|
||||
'PYTHON_CMD': localenv.subst('$python_cmd')}
|
||||
|
||||
|
||||
# Instantiate tests
|
||||
|
||||
Reference in New Issue
Block a user