-
Notifications
You must be signed in to change notification settings - Fork 234
/
install_dep.sh
24 lines (24 loc) · 1.06 KB
/
install_dep.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
# move this script to [blender directory]/[version]/
# blender configs
_blender_path=.
_blender_version=.
# paths
_blender_python=./$_blender_path/$_blender_version/$(find python/bin -type f | grep python)
_blender_python_libs=$_blender_path/$_blender_version/$(find python/include/* -type d | grep python)
# download and install pip
wget -4 --unlink https://bootstrap.pypa.io/get-pip.py
$_blender_python ./get-pip.py
# use China Tsinghua mirror
# note that this mirror may not be available for other countries
$_blender_python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# install packages
$_blender_python -m pip install -U circlify
$_blender_python -m pip install Cython
rm $_blender_python_libs/../python3.7m_backup
mv $_blender_python_libs/ $_blender_python_libs/../python3.7m_backup
mkdir $_blender_python_libs
ln -s /usr/include/python3.7m/* $(pwd)/$_blender_python_libs/
$_blender_python -m pip install -U PyMCubes
# $_blender_python -m pip install -U geomdl
$_blender_python -m pip install geomdl --install-option="--use-cython"
echo "complete."