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 from . import environment, utils
DEPENDENCIES = { DEPENDENCIES = {
"zmq", ("zmq","zmq"),
"umsgpack", ("umsgpack","umsgpack"),
"pyyaml" ("yaml","pyyaml")
} }

View File

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