[CalendarServer-changes] [7571] CalendarServer/branches/users/glyph/deploybuild/setup.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 7 17:01:23 PDT 2011
Revision: 7571
http://trac.macosforge.org/projects/calendarserver/changeset/7571
Author: glyph at apple.com
Date: 2011-06-07 17:01:23 -0700 (Tue, 07 Jun 2011)
Log Message:
-----------
Always exclude the 'data' dir, and add a little smarts to skip rewriting sometimes
Modified Paths:
--------------
CalendarServer/branches/users/glyph/deploybuild/setup.py
Modified: CalendarServer/branches/users/glyph/deploybuild/setup.py
===================================================================
--- CalendarServer/branches/users/glyph/deploybuild/setup.py 2011-06-08 00:01:19 UTC (rev 7570)
+++ CalendarServer/branches/users/glyph/deploybuild/setup.py 2011-06-08 00:01:23 UTC (rev 7571)
@@ -29,6 +29,9 @@
]
for root, dirs, files in os.walk("."):
+ if root == ".":
+ dirs.remove("data")
+
for exclude in (
".svn",
"_trial_temp",
@@ -86,7 +89,7 @@
# Run setup
#
-if __name__ == "__main__":
+def doSetup():
from distutils.core import setup
dist = setup(
@@ -134,6 +137,8 @@
if "install" in dist.commands:
install_obj = dist.command_obj["install"]
+ if install_obj.root is None:
+ return
install_scripts = os.path.normpath(install_obj.install_scripts)
install_lib = os.path.normpath(install_obj.install_lib)
root = os.path.normpath(install_obj.root)
@@ -182,3 +187,10 @@
newScript = open(scriptPath, "w")
newScript.write("\n".join(script))
newScript.close()
+
+
+
+if __name__ == "__main__":
+ doSetup()
+
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110607/8671c6ee/attachment.html>
More information about the calendarserver-changes
mailing list