build_dgl.sh 306 Bytes
Newer Older
1
#!/bin/bash
2
set -e
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

if [ -d build ]; then
	rm -rf build
fi
mkdir build

rm -rf _download

pushd build
cmake ..
make -j4
popd

pushd python
rm -rf build *.egg-info dist
pip3 uninstall -y dgl
Minjie Wang's avatar
Minjie Wang committed
19
# test install
20
python3 setup.py install
Minjie Wang's avatar
Minjie Wang committed
21
22
# test inplace build (for cython)
python3 setup.py build_ext --inplace
23
popd