[CalendarServer-changes] [5928] CalendarServer/branches/users/wsanchez/deployment/setup.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 23 11:12:09 PDT 2010
Revision: 5928
http://trac.macosforge.org/projects/calendarserver/changeset/5928
Author: cdaboo at apple.com
Date: 2010-07-23 11:12:06 -0700 (Fri, 23 Jul 2010)
Log Message:
-----------
Make sure all packages we need are present.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/deployment/setup.py
Modified: CalendarServer/branches/users/wsanchez/deployment/setup.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/setup.py 2010-07-23 17:20:24 UTC (rev 5927)
+++ CalendarServer/branches/users/wsanchez/deployment/setup.py 2010-07-23 18:12:06 UTC (rev 5928)
@@ -72,6 +72,25 @@
else:
version = "unknown (%s :: %s)" % (base_version, svn_revision)
+def find_modules():
+ modules = [
+ "twisted.plugins",
+ ]
+
+ for root, dirs, files in os.walk("."):
+ for exclude in (
+ ".svn",
+ "_trial_temp",
+ "build",
+ ):
+ if exclude in dirs:
+ dirs.remove(exclude)
+
+ if "__init__.py" in files:
+ modules.append(".".join(root.split(os.path.sep)[1:]))
+
+ return modules
+
#
# Options
#
@@ -128,15 +147,7 @@
author_email = None,
license = None,
platforms = [ "all" ],
- packages = [
- "twistedcaldav",
- "twistedcaldav.directory",
- "twistedcaldav.method",
- "twistedcaldav.query",
- "twistedcaldav.admin",
- "twistedcaldav.py",
- "twisted",
- ],
+ packages = find_modules(),
package_data = {
"twisted": ["plugins/caldav.py",
"plugins/kqueuereactor.py"],
@@ -146,6 +157,7 @@
"bin/caldavd",
"bin/caldav_load_augmentdb",
"bin/caldav_manage_augments",
+ "bin/caldav_manage_postgres",
],
data_files = [ ("caldavd", ["conf/caldavd.plist"]) ],
ext_modules = extensions,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100723/14a1600f/attachment-0001.html>
More information about the calendarserver-changes
mailing list