mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 20:54:00 +01:00
English in configure
This commit is contained in:
parent
f52e877f7c
commit
e31f162e5b
23
configure
vendored
23
configure
vendored
@ -14,8 +14,8 @@ Options:
|
|||||||
but the compilation will be lighting fast
|
but the compilation will be lighting fast
|
||||||
|
|
||||||
--development It will create a build.ninja for each directory
|
--development It will create a build.ninja for each directory
|
||||||
who contains a binary, than you can compile then
|
which contains a binary, than you can compile them
|
||||||
individualy if you want
|
individually if you want
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ def find_path(bin_, l_installed, var_for_qp_root=False):
|
|||||||
# | |_| | | (_ |_ | (_) | |
|
# | |_| | | (_ |_ | (_) | |
|
||||||
#
|
#
|
||||||
def check_output(*popenargs, **kwargs):
|
def check_output(*popenargs, **kwargs):
|
||||||
"""Run command with arguments and return its output as a byte string.
|
"""Run command with arguments and return its output as a 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.
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ def check_output(*popenargs, **kwargs):
|
|||||||
def checking(d_dependency):
|
def checking(d_dependency):
|
||||||
"""
|
"""
|
||||||
For each key in d_dependency check if it
|
For each key in d_dependency check if it
|
||||||
it avalabie or not
|
is avalabie or not
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def check_python():
|
def check_python():
|
||||||
@ -205,8 +205,8 @@ def checking(d_dependency):
|
|||||||
|
|
||||||
def check_availability(binary):
|
def check_availability(binary):
|
||||||
"""
|
"""
|
||||||
If avalable return the path who can find the
|
If avalable return the path where the binary
|
||||||
binary else return 0
|
can be found, else return 0
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if binary == "python":
|
if binary == "python":
|
||||||
@ -254,7 +254,7 @@ def checking(d_dependency):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print "Checking what you need to install and what is it avalaible"
|
print "Checking what you need to install and what is avalaible"
|
||||||
print ""
|
print ""
|
||||||
l_installed = dict()
|
l_installed = dict()
|
||||||
l_needed = []
|
l_needed = []
|
||||||
@ -327,7 +327,7 @@ _|_ | | _> |_ (_| | | (_| |_ | (_) | |
|
|||||||
d_print = {
|
d_print = {
|
||||||
"install_ninja": "Install ninja...",
|
"install_ninja": "Install ninja...",
|
||||||
"build": "Creating build.ninja...",
|
"build": "Creating build.ninja...",
|
||||||
"install": "Installing the dependency through ninja..."
|
"install": "Installing the dependencies with Ninja..."
|
||||||
}
|
}
|
||||||
|
|
||||||
length = max(map(len, d_print.values()))
|
length = max(map(len, d_print.values()))
|
||||||
@ -486,7 +486,7 @@ def create_ninja_and_rc(l_installed):
|
|||||||
subprocess.check_call(" ".join(l), shell=True,stderr=dnull)
|
subprocess.check_call(" ".join(l), shell=True,stderr=dnull)
|
||||||
except:
|
except:
|
||||||
print "[ FAIL ]"
|
print "[ FAIL ]"
|
||||||
print "Check the valididy of the config file provided ({0})".format(sys.argv[1])
|
print "Check the validity of the config file provided ({0})".format(sys.argv[1])
|
||||||
print "Exit..."
|
print "Exit..."
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
@ -498,6 +498,11 @@ def recommendation():
|
|||||||
path = join(QP_ROOT, "quantum_package.rc")
|
path = join(QP_ROOT, "quantum_package.rc")
|
||||||
print "Now :"
|
print "Now :"
|
||||||
print " source {0}".format(path)
|
print " source {0}".format(path)
|
||||||
|
print ""
|
||||||
|
print "Then, install the modules you want to install using :"
|
||||||
|
print " qp_install_module.py "
|
||||||
|
print ""
|
||||||
|
print "Finally :"
|
||||||
print " ninja"
|
print " ninja"
|
||||||
print " make -C ocaml"
|
print " make -C ocaml"
|
||||||
print ""
|
print ""
|
||||||
|
Loading…
Reference in New Issue
Block a user