Commits

Ronald Oussoren committed d2b3d77

Explicitly give an error message when there is a subpackage in the
packages option

See issue #39.

Comments (0)

Files changed (2)

doc/changelog.rst

 
   Patch by Dan Horner.
 
+- It is currently not possible to use a subpackage ("foo.bar") in the list
+  of packages for the "packages" option. Py2app now explicitly checks for this
+  and prints an error message instead of building an application that doesn't
+  work.
+
+  Issue: #39 
+
 
 py2app 0.7.1
 ------------

py2app/build_app.py

         #    self.includes.add('pkgutil')
         #    self.includes.add('imp')
         self.packages = set(fancy_split(self.packages))
+        for pkg in self.packages:
+            if "." in pkg:
+                raise DistutilsOptionError("Cannot include subpackages using the 'packages' option")
+
         self.excludes = set(fancy_split(self.excludes))
         self.excludes.add('readline')
         # included by apptemplate