Skip to content
Snippets Groups Projects
Commit 0cbaecca authored by Erik Schnetter's avatar Erik Schnetter
Browse files

Don't use subprocess module

parent 867e1333
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment