[Zope3-checkins] SVN: Zope3/trunk/setup.py Ignore version control files

Sidnei da Silva sidnei at awkly.org
Thu Mar 31 14:52:05 EST 2005


Log message for revision 29761:
  Ignore version control files

Changed:
  U   Zope3/trunk/setup.py

-=-
Modified: Zope3/trunk/setup.py
===================================================================
--- Zope3/trunk/setup.py	2005-03-31 19:34:40 UTC (rev 29760)
+++ Zope3/trunk/setup.py	2005-03-31 19:52:04 UTC (rev 29761)
@@ -73,6 +73,9 @@
         '.txt',  '.xml', '.zcml', '.mar', '.in', '.sample',
         ]
 
+IGNORE_NAMES = (
+    'CVS', '.svn', # Revision Control Directories
+    )
 
 # This class serves multiple purposes.  It walks the file system looking for
 # auxiliary files that distutils doesn't install properly, and it actually
@@ -90,6 +93,10 @@
         self._plen = len(prefix)
 
     def visit(self, ignore, dir, files):
+        # Remove ignored filenames
+        for name in IGNORE_NAMES:
+            if name in files:
+                files.remove(name)
         for file in files:
             # First see if this is one of the packages we want to add, or if
             # we're really skipping this package.



More information about the Zope3-Checkins mailing list