mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 12:56:14 +01:00
Try check_output
This commit is contained in:
parent
1ed68b92c4
commit
3edda3c137
@ -109,7 +109,7 @@ l_need = []
|
|||||||
# | |_| | | (_ |_ | (_) | |
|
# | |_| | | (_ |_ | (_) | |
|
||||||
#
|
#
|
||||||
def check_output(*popenargs, **kwargs):
|
def check_output(*popenargs, **kwargs):
|
||||||
r"""Run command with arguments and return its output as a byte string.
|
"""Run command with arguments and return its output as a byte string.
|
||||||
|
|
||||||
Backported from Python 2.7 as it's implemented as pure python on stdlib.
|
Backported from Python 2.7 as it's implemented as pure python on stdlib.
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ if "ninja" in l_need_genealogy:
|
|||||||
"wget {0} -O {1} -o /dev/null ;".format(url, path_archive),
|
"wget {0} -O {1} -o /dev/null ;".format(url, path_archive),
|
||||||
"./scripts/install_ninja.sh 2>/dev/null;", "cd -"]
|
"./scripts/install_ninja.sh 2>/dev/null;", "cd -"]
|
||||||
|
|
||||||
subprocess.check_call(" ".join(l_cmd), shell=True)
|
subprocess.check_output(" ".join(l_cmd), shell=True)
|
||||||
l_need_genealogy.remove("ninja")
|
l_need_genealogy.remove("ninja")
|
||||||
|
|
||||||
print """
|
print """
|
||||||
|
Loading…
Reference in New Issue
Block a user