Don't use subprocess module

This commit is contained in:
Erik Schnetter 2016-04-22 21:52:11 -04:00
parent 867e1333d0
commit 0cbaecca60

View File

@ -25,7 +25,6 @@
from spack import * from spack import *
import shutil import shutil
import subprocess
class Hdf5(Package): class Hdf5(Package):
@ -177,7 +176,8 @@ def check_install(self, spec):
"-L%s" % join_path(spec.prefix, "lib"), "-lhdf5", "-L%s" % join_path(spec.prefix, "lib"), "-lhdf5",
"-lz") "-lz")
try: try:
output = subprocess.check_output("./check") check = Executable('./check')
output = check(return_output=True)
except: except:
output = "" output = ""
success = output == expected success = output == expected