diff --git a/gluon/module_installer.py b/gluon/module_installer.py new file mode 100644 index 00000000..068421b8 --- /dev/null +++ b/gluon/module_installer.py @@ -0,0 +1,10 @@ +from setuptools.command import easy_install +import pkg_resources + +def install(module_names): + for name in module_names: + try: + pkg_resources.require(name) + except pkg_resources.DistributionNotFound: + easy_install.main( ["-U",name] ) + pkg_resources.require(name)