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