Skip to content
Open
Changes from 2 commits
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
8 changes: 7 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,8 @@
import bpy
import sys
import addon_utils
from pathlib import Path
from site import getsitepackages
Comment thread
maarzt marked this conversation as resolved.
Outdated

# install pip

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

python_path = get_python_path()
for path in getsitepackages():
if "site-packages" in path:
target = path
break
packages = {'grpcio', 'bidict', 'grpcio-tools', 'pandas'}
subprocess.check_output([python_path, '-m', 'pip', 'install', *packages])
subprocess.check_output([python_path, '-m', 'pip', 'install', '--target', str(target), *packages])
Comment thread
maarzt marked this conversation as resolved.
Outdated

# test if dependencies are installed

Expand Down