-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmake.sh
executable file
·26 lines (25 loc) · 1.11 KB
/
make.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
PYPLATFORM=${1?Specify the target platform: win, linux, osx}
PYVERSION=${2?Specify the Blender Python version: 36, 37, 38}
case $PYPLATFORM in
linux) PIPPLAT=manylinux1_x86_64;;
win) PIPPLAT=win_amd64;;
osx) PIPPLAT=macosx_10_14_x86_64;;
esac
mkdir -p build
rm -rf build/Taichi-Blend
cp -r taichi_blend build/Taichi-Blend
mkdir -p build/Taichi-Blend/bundle-packages
cp -r external/ptina/ptina build/Taichi-Blend/bundle-packages
pip install --python-version $PYVERSION --platform $PIPPLAT --no-deps -r requirements.txt -t build/Taichi-Blend/bundle-packages
rm -rf build/Taichi-Blend/bundle-packages/include
rm -rf build/Taichi-Blend/bundle-packages/*.dist-info
rm -rf build/Taichi-Blend/bundle-packages/*.egg-info
rm -rf build/Taichi-Blend/bundle-packages/__pycache__
rm -rf build/Taichi-Blend/bundle-packages/*/__pycache__
rm -rf build/Taichi-Blend/bundle-packages/*/*/__pycache__
rm -rf build/Taichi-Blend/bundle-packages/*/*/*/__pycache__
rm -rf build/Taichi-Blend/bundle-packages/bin
rm -f build/Taichi-Blend.zip
cd build
rm -rf Taichi-Blend-$PYPLATFORM-$PYVERSION.zip
zip -r Taichi-Blend-$PYPLATFORM-$PYVERSION.zip Taichi-Blend