[Checkins] SVN: zc.buildout/branches/python-3-2/src/zc/buildout/testing.py Normalize output for easy_install.txt to match shared library files on linux.

Christian Theune ct at gocept.com
Thu Apr 7 04:19:39 EDT 2011


Log message for revision 121319:
  Normalize output for easy_install.txt to match shared library files on linux.
  

Changed:
  U   zc.buildout/branches/python-3-2/src/zc/buildout/testing.py

-=-
Modified: zc.buildout/branches/python-3-2/src/zc/buildout/testing.py
===================================================================
--- zc.buildout/branches/python-3-2/src/zc/buildout/testing.py	2011-04-07 07:59:08 UTC (rev 121318)
+++ zc.buildout/branches/python-3-2/src/zc/buildout/testing.py	2011-04-07 08:19:38 UTC (rev 121319)
@@ -66,11 +66,14 @@
 def ls(dir, *subs):
     if subs:
         dir = os.path.join(dir, *subs)
-    names = os.listdir(dir)
-    names.sort()
-    for name in names:
+    names = []
+    for name in os.listdir(dir):
         if name == '__pycache__':
             continue
+        name = name.replace('.cpython-32m.so', '.so')
+        names.append(name)
+
+    for name in sorted(names):
         if os.path.isdir(os.path.join(dir, name)):
             print('d ', end=' ')
         elif os.path.islink(os.path.join(dir, name)):



More information about the checkins mailing list