added warning if the Python interface does not install.

This commit is contained in:
Dave Goodwin 2003-07-04 07:18:34 +00:00
parent 76526a6aa3
commit 14e7a609c6

View file

@ -22,6 +22,7 @@ if pycmd <> 'python':
ctloc = '-'
warn = ''
warn2 = ''
if localinst:
try:
v = sys.version_info
@ -41,10 +42,11 @@ if localinst:
"""
except:
pass
sys.path.append(ctloc)
f.write('PYTHONPATH='+ctloc+':$PYTHONPATH\nexport PYTHONPATH\n')
except:
pass
print 'error'
f.close()
f = open(bindir+'/mixmaster.py','w')
@ -88,6 +90,16 @@ if ctpath <> "-":
Python package """+ctpath
if warn <> '':
print warn
else:
print """
######################################################################
Warning: the Cantera Python package is not installed. If you
intentionally skipped it, ignore this message. Otherwise, type
'make python' and/or 'make python-install' and look for error messages.
Note that you must first install the 'Numeric' package before installing
the Cantera package.
######################################################################
"""
print """