Changeset 8535


Ignore:
Timestamp:
Aug 23, 2012, 5:34:33 PM (13 years ago)
Author:
steve
Message:

Problem with pypar_extras setup.py using subprocess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/pypar_extras/setup.py

    r8534 r8535  
    5252    import subprocess
    5353
    54     #FIXME SR: This only works for python 2.7!
     54
    5555    print 'running ' + cmd
    5656    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
    5862    except:
    5963        output = ''
     
    6973    # LAM/OPENMPI/MPICH2
    7074    output = _run_command('mpicc -show')
    71 
    72 
    73     print '****',output
    7475
    7576    if output:
Note: See TracChangeset for help on using the changeset viewer.