فهرست منبع

Ensure packages from entry points are copied

Closes gh-21
Thomas Kluyver 11 سال پیش
والد
کامیت
08eae99c67
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      nsist/__init__.py

+ 4 - 0
nsist/__init__.py

@@ -150,6 +150,10 @@ from {module} import {func}
             f.write(self.SCRIPT_TEMPLATE.format(qualifier=self.py_qualifier,
                                                 module=module, func=func))
 
+        pkg = module.split('.')[0]
+        if pkg not in self.packages:
+            self.packages.append(pkg)
+
     def prepare_shortcuts(self):
         """Prepare shortcut files in the build directory.