diff --git a/__init__.py b/__init__.py index c7782d1..2ef6127 100644 --- a/__init__.py +++ b/__init__.py @@ -20,9 +20,9 @@ from bpy.app.handlers import persistent from . import environment, utils DEPENDENCIES = { - "zmq", - "umsgpack", - "pyyaml" + ("zmq","zmq"), + ("umsgpack","umsgpack"), + ("yaml","pyyaml") } diff --git a/environment.py b/environment.py index acdbb5f..5833c54 100644 --- a/environment.py +++ b/environment.py @@ -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)