-
Notifications
You must be signed in to change notification settings - Fork 3
/
update_xnd.sh
executable file
·52 lines (43 loc) · 985 Bytes
/
update_xnd.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
set -ex
CWD=$(pwd)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# assuming conda environment:
export PREFIX=$CONDA_PREFIX
if [[ -z "${TRAVIS}" ]]; then
if ! [ -d $DIR/ndtypes ]; then
git clone [email protected]:plures/ndtypes.git
fi
if ! [ -d $DIR/xnd ]; then
git clone [email protected]:plures/xnd.git
fi
if ! [ -d $DIR/gumath ]; then
git clone [email protected]:plures/gumath.git
fi
else
git clone https://github.com/plures/ndtypes.git
git clone https://github.com/plures/xnd.git
git clone https://github.com/plures/gumath.git
fi
cd $DIR/ndtypes
git pull
#make distclean
#./configure --prefix=$PREFIX
#make
#make install
pip install -U .
cd $DIR/xnd
git pull
#make distclean
#./configure --prefix=$PREFIX --with-includes=$PREFIX/include
#make
#make install
pip install -U .
cd $DIR/gumath
git pull
#make distclean
#./configure --prefix=$PREFIX --with-includes=$PREFIX/include
#make
#make install
pip install -U .
cd $CWD