소스 검색

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.