[cig-commits] r5971 - cs/merlin/branches/v1/merlin

leif at geodynamics.org leif at geodynamics.org
Tue Feb 6 18:36:49 PST 2007


Author: leif
Date: 2007-02-06 18:36:48 -0800 (Tue, 06 Feb 2007)
New Revision: 5971

Modified:
   cs/merlin/branches/v1/merlin/__init__.py
Log:
Automatically exclude 'archimedes' from find_packages() in
merlin-based projects.


Modified: cs/merlin/branches/v1/merlin/__init__.py
===================================================================
--- cs/merlin/branches/v1/merlin/__init__.py	2007-02-07 00:06:10 UTC (rev 5970)
+++ cs/merlin/branches/v1/merlin/__init__.py	2007-02-07 02:36:48 UTC (rev 5971)
@@ -15,7 +15,7 @@
 
 bootstrap_install_from = None
 
-def find_packages(where='.', exclude=()):
+def find_packages(where='.', exclude=[]):
     """Return a list all Python packages found within directory 'where'
 
     'where' should be supplied as a "cross-platform" (i.e. URL-style) path; it
@@ -34,6 +34,7 @@
                 os.path.isfile(os.path.join(fn,'__init__.py'))
             ):
                 out.append(prefix+name); stack.append((fn,prefix+name+'.'))
+    exclude = ["archimedes"] + exclude
     for pat in exclude:
         from fnmatch import fnmatchcase
         out = [item for item in out if not fnmatchcase(item,pat)]



More information about the cig-commits mailing list