-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathinstall.py
23 lines (19 loc) · 855 Bytes
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python3
# create the optional arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--gpp",default="g++",
help='C++ Compiler to be used')
parser.add_argument("--check_gpp",default="True",
help='C++ Compiler to be used')
parser.add_argument("--openblas",default="False",
help='Use openblas, instead of usual lapack')
args = parser.parse_args() # get the arguments
from installtk import install2
check_gpp = "True"==args.check_gpp # if gpp is checked
openblas = "True"==args.openblas # if openblas should be used
install2.compile(gpp=args.gpp,check_gpp=check_gpp,openblas=openblas) # compile the C++ library
from installtk import addpythonpath
addpythonpath.addpath() # add the library to the Python path
from installtk import addsystem
addsystem.addrc() # add the library to the bash file