-
Notifications
You must be signed in to change notification settings - Fork 1
/
ubuntu_compile_distribution.sh
executable file
·52 lines (42 loc) · 1.16 KB
/
ubuntu_compile_distribution.sh
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
#!/bin/bash
LAL_HEADERS="$HOME/Documents/projects/LAL-dev/latest/c++-libs/include"
LAL_LIBRARY="$HOME/Documents/projects/LAL-dev/latest/c++-libs/lib"
if [ -z $1 ]; then
PYTHON_HEADERS="/usr/include/python3.10"
PYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/"
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--build=release
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$PYTHON_HEADERS" \
--build=debug
# for anaconda users only
elif [ "$1" == "anaconda" ]; then
anaconda_dir="/home/$USER/anaconda3"
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/python3.9" \
--build=release
./compile.sh \
--environment=distribution \
--lal-headers="$LAL_HEADERS" \
--lal-libs="$LAL_LIBRARY" \
--gmp-headers="" \
--gmp-libs="" \
--python-headers="$anaconda_dir/include/python3.9" \
--build=debug
fi