Don't use subprocess module
This commit is contained in:
parent
867e1333d0
commit
0cbaecca60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user