mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 01:56:05 +01:00
Fix #87
This commit is contained in:
parent
c1d57e354f
commit
09da801b1d
17
configure
vendored
17
configure
vendored
@ -72,8 +72,7 @@ path_github = {"head": "http://github.com/", "tail": "archive/master.tar.gz"}
|
||||
|
||||
ocaml = Info(
|
||||
url='http://raw.github.com/ocaml/opam/master/shell/opam_installer.sh',
|
||||
description=
|
||||
' Ocaml, Opam and the Core library (it will take some time roughly 20min)',
|
||||
description=' Ocaml, Opam and the Core library (it will take some time roughly 20min)',
|
||||
default_path=join(QP_ROOT_BIN, "opam"))
|
||||
|
||||
m4 = Info(
|
||||
@ -416,10 +415,8 @@ def create_ninja_and_rc(l_installed):
|
||||
|
||||
"""
|
||||
|
||||
d_print = {
|
||||
"qp_root": "Creating quantum_package.rc...",
|
||||
"build": "Creating build.ninja..."
|
||||
}
|
||||
d_print = {"qp_root": "Creating quantum_package.rc...",
|
||||
"build": "Creating build.ninja..."}
|
||||
|
||||
length = max(map(len, d_print.values()))
|
||||
|
||||
@ -474,9 +471,13 @@ def create_ninja_and_rc(l_installed):
|
||||
|
||||
l = [qp_create_ninja, "create"] + sys.argv[1:]
|
||||
try:
|
||||
subprocess.check_call(" ".join(l), shell=True)
|
||||
subprocess.check_call(" ".join(l), shell=True,stderr="/dev/null")
|
||||
except:
|
||||
raise
|
||||
print "[ FAIL ]"
|
||||
print "Check the valididy of the config file provided ({0})".format(sys.argv[1])
|
||||
print "Exit..."
|
||||
sys.exit(1)
|
||||
|
||||
else:
|
||||
print "[ OK ]"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user