[CalendarServer-changes] [12078] twext/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:16:58 PDT 2014


Revision: 12078
          http://trac.calendarserver.org//changeset/12078
Author:   wsanchez at apple.com
Date:     2013-12-12 18:28:15 -0800 (Thu, 12 Dec 2013)
Log Message:
-----------
We need find_packages()

Modified Paths:
--------------
    twext/trunk/setup.py

Modified: twext/trunk/setup.py
===================================================================
--- twext/trunk/setup.py	2013-12-13 02:14:09 UTC (rev 12077)
+++ twext/trunk/setup.py	2013-12-13 02:28:15 UTC (rev 12078)
@@ -15,6 +15,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 ##
+
 from __future__ import print_function
 
 import sys
@@ -25,6 +26,28 @@
 from version import version
 
 
+def find_packages():
+    modules = [
+        # "twisted.plugins",
+    ]
+
+    excludes = [
+        ".svn",
+        "_trial_temp",
+        "build",
+    ]
+
+    for root, dirs, files in os.walk("."):
+        for exclude in excludes:
+            if exclude in dirs:
+                dirs.remove(exclude)
+
+        if "__init__.py" in files:
+            modules.append(".".join(root.split(os.path.sep)[1:]))
+
+    return modules
+
+
 #
 # Options
 #
@@ -85,7 +108,7 @@
         author_email=None,
         license="Apache License, Version 2.0",
         platforms=["all"],
-        packages=["twext"],
+        packages=find_packages(),
         package_data={},
         scripts=[],
         data_files=[],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/385b4855/attachment.html>


More information about the calendarserver-changes mailing list