[SCons] Fix some dependency issues for building "ctpath.m"
This commit is contained in:
parent
7683677cac
commit
721f0266be
2 changed files with 5 additions and 1 deletions
|
|
@ -937,6 +937,8 @@ if env['python_package'] in ('full','default','new'):
|
|||
else:
|
||||
warnNoPython = False
|
||||
env['python_array_include'] = ''
|
||||
env['python_module_loc'] = ''
|
||||
env['install_python2_action'] = ''
|
||||
|
||||
|
||||
# Python 3 Package Settings
|
||||
|
|
|
|||
|
|
@ -78,15 +78,17 @@ env['matlab_extension'] = ctmethods
|
|||
### Install the Matlab toolbox ###
|
||||
|
||||
# 'ctpath.m'
|
||||
globalenv = env
|
||||
def copy_var(target, source, env):
|
||||
if env['python_prefix'] == 'USER':
|
||||
env['python_module_loc_sc'] = ''
|
||||
else:
|
||||
env['python_module_loc_sc'] = env['python_module_loc']
|
||||
env['python_module_loc_sc'] = globalenv['python_module_loc']
|
||||
|
||||
target = localenv.SubstFile('#interfaces/matlab/ctpath.m',
|
||||
'#interfaces/matlab/ctpath.m.in')
|
||||
localenv.AddPreAction(target, copy_var)
|
||||
localenv.Depends(target, env['install_python2_action'])
|
||||
install('$inst_matlab_dir', target)
|
||||
|
||||
# 'cantera_demos.m'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue