Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/resources/blender-scripts/install_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import bpy
import sys
import addon_utils
from pathlib import Path

# install pip

Expand All @@ -52,8 +53,9 @@ def get_python_path():
# install dependencies

python_path = get_python_path()
target = Path(python_path).parent.parent/"lib"/"site-packages"
Comment thread
maarzt marked this conversation as resolved.
Outdated
packages = {'grpcio', 'bidict', 'grpcio-tools', 'pandas'}
subprocess.check_output([python_path, '-m', 'pip', 'install', *packages])
subprocess.check_output([python_path, '-m', 'pip', 'install', "--upgrade", '--target', str(target), *packages])
Comment thread
maarzt marked this conversation as resolved.
Outdated

# test if dependencies are installed

Expand Down
Loading