-
Notifications
You must be signed in to change notification settings - Fork 6
/
install_variation.sh
31 lines (27 loc) · 807 Bytes
/
install_variation.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
#!/usr/bin/env bash
UNAME=$( command -v uname)
case $( "${UNAME}" | tr '[:upper:]' '[:lower:]') in
linux*)
sh buildScript.sh
cp ./build/libroad-generation.so ./variation/variation/resources/libroad-generation.so
cd variation
pip install wheel
python3 setup.py bdist_wheel
cd dist
pip install roadvariation-0.1-py3-none-any.whl --force-reinstall
;;
msys*|cygwin*|mingw*|nt|win*)
printf 'windows\n'
./build_xercesc_win64.sh
./buildScript.sh
cp ./Release/road-generation.dll ./variation/variation/resources/road-generation.dll
cd variation
python -m pip install wheel
python -m setup.py bdist_wheel
cd dist
python -m pip install roadvariation-0.1-py3-none-any.whl --force-reinstall
;;
*)
printf 'unknown os\n'
;;
esac