added writing PYTHONPATH to setup_Cantera for min_Python
This commit is contained in:
parent
56548239eb
commit
29335b4442
1 changed files with 11 additions and 0 deletions
|
|
@ -61,6 +61,17 @@ if localinst and build_python == 2:
|
|||
print 'error'
|
||||
f.close()
|
||||
|
||||
|
||||
if localinst and build_python == 1:
|
||||
try:
|
||||
v = sys.version_info
|
||||
ctloc = prefix+'/lib/python'+`v[0]`+'.'+`v[1]`+'/site-packages'
|
||||
f.write('PYTHONPATH='+ctloc+':$PYTHONPATH\nexport PYTHONPATH\n')
|
||||
except:
|
||||
print 'error'
|
||||
f.close()
|
||||
|
||||
|
||||
if build_python == 2:
|
||||
# write the script to run MixMaster
|
||||
f = open(bindir+'/mixmaster','w')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue