[Zope3-checkins] SVN: Zope3/trunk/utilities/finddeps.py attempt to more reliably detect packaging component boundaries; this still

Fred L. Drake, Jr. fred at zope.com
Sat May 15 02:17:15 EDT 2004


Log message for revision 24708:
attempt to more reliably detect packaging component boundaries; this still
does not do what is really needed, which is to read PACKAGE.cfg files to
determine exactly where the boundaries are



-=-
Modified: Zope3/trunk/utilities/finddeps.py
===================================================================
--- Zope3/trunk/utilities/finddeps.py	2004-05-15 06:12:42 UTC (rev 24707)
+++ Zope3/trunk/utilities/finddeps.py	2004-05-15 06:17:15 UTC (rev 24708)
@@ -41,7 +41,7 @@
 
 Important: Make sure that the PYTHONPATH is set to or includes 'ZOPE3/src'.
 
-$Id: finddeps.py,v 1.19 2004/05/10 17:03:25 fdrake Exp $
+$Id$
 """
 import sys
 import getopt
@@ -398,9 +398,13 @@
                 deps += getDependenciesOfPythonFile(filePath)
             elif zcml and zcmlfile.match(file):
                 deps += getDependenciesOfZCMLFile(filePath)
-            elif os.path.isdir(filePath) and \
-                     '__init__.py' in os.listdir(filePath):
-                deps += getDependencies(filePath)
+            elif os.path.isdir(filePath):
+                filenames = os.listdir(filePath)
+                if (  'PUBLICATION.cfg' not in filenames
+                      and 'SETUP.cfg' not in filenames
+                      and 'DEPENDENCIES.cfg' not in filenames
+                      and '__init__.py' in filenames):
+                    deps += getDependencies(filePath)
 
     elif os.path.isfile(path):
         ext = os.path.splitext(path)[1]




More information about the Zope3-Checkins mailing list