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