Changeset 8535
- Timestamp:
- Aug 23, 2012, 5:34:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/pypar_extras/setup.py
r8534 r8535 52 52 import subprocess 53 53 54 #FIXME SR: This only works for python 2.7! 54 55 55 print 'running ' + cmd 56 56 try: 57 output = subprocess.check_output(cmd, shell=True) 57 #FIXME SR: This only works for python 2.7! 58 #output = subprocess.check_output(cmd, shell=True) 59 #FIXME SR: This works for python 2.6 60 output = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] 61 58 62 except: 59 63 output = '' … … 69 73 # LAM/OPENMPI/MPICH2 70 74 output = _run_command('mpicc -show') 71 72 73 print '****',output74 75 75 76 if output:
Note: See TracChangeset
for help on using the changeset viewer.