fix: package installation setup errors

This commit is contained in:
Swann 2019-08-26 23:14:30 +02:00
parent 0992c06133
commit 591a1e88ba
2 changed files with 6 additions and 6 deletions

View File

@ -20,9 +20,9 @@ from bpy.app.handlers import persistent
from . import environment, utils
DEPENDENCIES = {
"zmq",
"umsgpack",
"pyyaml"
("zmq","zmq"),
("umsgpack","umsgpack"),
("yaml","pyyaml")
}

View File

@ -139,6 +139,6 @@ def setup(dependencies, python_path):
if not module_can_be_imported("pip"):
install_pip()
for dep in dependencies:
if not module_can_be_imported(dep):
install_package(dep)
for module_name,package_name in dependencies:
if not module_can_be_imported(module_name):
install_package(package_name)