-
Notifications
You must be signed in to change notification settings - Fork 14
/
install
executable file
·68 lines (60 loc) · 1.11 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
check_for_python=true
choice="n"
njobs="4"
folder="build"
POSITIONAL=()
while [[ $# > 0 ]]
do
key="$1"
case $key in
-C)
folder=$2
shift
shift
;;
lpc)
module load gcc/10.2.0
shift
;;
n)
check_for_python=false
shift
;;
y)
check_for_python=false
choice="y"
shift
;;
-j|njobs)
njobs="$2"
shift
shift
;;
debug)
folder="debug"
shift
;;
*) # unknown option
POSITIONAL+=("$1") # save it in an array for later
shift # past argument
;;
esac
done
echo "Build folder = ${folder}"
echo "Number of jobs = ${njobs}"
make -C ${folder} -j ${njobs}
if [ $check_for_python == true ] ; then
read -p "Install python wrapper? (y/n) " choice
fi
if [ $choice == "y" ] ; then
echo "installing python module..."
# cd feat
# rm -rf build
# rm -rf dist
# mkdir lib/
# cp ../build/libfeat_lib.so $CONDA_PREFIX/lib/
python setup.py install
cd ..
fi
echo "done"