Remove setup_cantera scripts

This commit is contained in:
Ingmar Schoegl
2022-05-29 13:46:05 -05:00
committed by Ray Speth
parent 546d1caf1f
commit 8dc6b05afd
3 changed files with 0 additions and 104 deletions

View File

@@ -11,21 +11,6 @@ if env['INSTALL_MANPAGES']:
### Generate customized scripts ###
# 'setup_cantera'
if localenv['layout'] != 'debian' and env['OS'] != 'Windows':
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']
for script in ['setup_cantera', 'setup_cantera.csh']:
target = env.SubstFile(script, script + '.in')
localenv.AddPreAction(target, copy_var)
localenv.Depends(target, env['install_python_action'])
install('$inst_bindir', target)
# Cantera.mak include file for Makefile projects
# cantera.pc for use with pkg-config

View File

@@ -1,41 +0,0 @@
#!/bin/csh
printf "%s\n" \
"The setup_cantera script is deprecated and will be removed after Cantera 2.6." \
"If you use this script, migration information is available from:" \
"https://github.com/Cantera/enhancements/issues/135"
if (! $?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH @ct_libdir@
else
setenv LD_LIBRARY_PATH @ct_libdir@:$LD_LIBRARY_PATH
endif
if (! $?PKG_CONFIG_PATH) then
setenv PKG_CONFIG_PATH @ct_libdir@/pkgconfig
else
setenv PKG_CONFIG_PATH @ct_libdir@/pkgconfig:$PKG_CONFIG_PATH
endif
setenv PYTHON_CMD @python_cmd@
setenv PATH @ct_bindir@:$PATH
if ("@python_cmd@" != `which python`) then
alias ctpython @python_cmd@
endif
if ("@matlab_toolbox@" == "y") then
if (! $?MATLABPATH) then
setenv MATLABPATH @ct_matlab_dir@:@ct_matlab_dir@/1D
else
setenv MATLABPATH $MATLABPATH:@ct_matlab_dir@:@ct_matlab_dir@/1D
endif
endif
if ("@python_module_loc_sc@" != "") then
if (! $?PYTHONPATH) then
setenv PYTHONPATH @python_module_loc_sc@
else
setenv PYTHONPATH @python_module_loc_sc@:$PYTHONPATH
endif
endif

View File

@@ -1,48 +0,0 @@
#!/bin/sh
printf "%s\n" \
"The setup_cantera script is deprecated and will be removed after Cantera 2.6." \
"If you use this script, migration information is available from:" \
"https://github.com/Cantera/enhancements/issues/135"
if [ -z $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=@ct_libdir@
else
LD_LIBRARY_PATH=@ct_libdir@:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
if [ -z $PKG_CONFIG_PATH ]; then
PKG_CONFIG_PATH=@ct_libdir@/pkgconfig
else
PKG_CONFIG_PATH=@ct_libdir@/pkgconfig:$PKG_CONFIG_PATH
fi
export PKG_CONFIG_PATH
PYTHON_CMD=@python_cmd@
export PYTHON_CMD
PATH=@ct_bindir@:$PATH
export PATH
if [ "@python_cmd@" != "`which python`" ]; then
alias ctpython=@python_cmd@
fi
if [ "@matlab_toolbox@" = "y" ]; then
if [ -z $MATLABPATH ]; then
MATLABPATH=@ct_matlab_dir@:@ct_matlab_dir@/1D
else
MATLABPATH=$MATLABPATH:@ct_matlab_dir@:@ct_matlab_dir@/1D
fi
export MATLABPATH
fi
if [ "@python_module_loc_sc@" != "" ]; then
if [ -z $PYTHONPATH ]; then
PYTHONPATH=@python_module_loc_sc@
else
PYTHONPATH=@python_module_loc_sc@:$PYTHONPATH
fi
fi
export PYTHONPATH