[py-svn] r58022 - py/build

hpk at codespeak.net hpk at codespeak.net
Tue Sep 9 20:56:34 CEST 2008


Author: hpk
Date: Tue Sep  9 20:56:32 2008
New Revision: 58022

Modified:
   py/build/gensetup.py
Log:
exclude contrib from packaging


Modified: py/build/gensetup.py
==============================================================================
--- py/build/gensetup.py	(original)
+++ py/build/gensetup.py	Tue Sep  9 20:56:32 2008
@@ -26,8 +26,10 @@
         self.lines = []
         self.wcinfo = self.wcbasedir.info()
         self.wcstatus = self.wcbasedir.status(rec=True)
+        contrib = self.wcbasedir.join("contrib")
         self.allpaths = [x for x in self.wcstatus.allpath()
-                            if x not in self.wcstatus.unknown and
+                            if not x.relto(contrib) and x != contrib and 
+                               x not in self.wcstatus.unknown and
                                x not in self.wcstatus.external and 
                                x not in self.wcstatus.ignored and 
                                not self.isexcluded(x)]



More information about the pytest-commit mailing list