[distutils] don't consider directories as data files
authorJulien Jehannet <julien.jehannet@logilab.fr>
Wed, 22 Apr 2009 18:58:47 +0200
changeset 1438 21b8f3961e6f
parent 1431 07614fd4722a
child 1439 e1cfa73f6e78
[distutils] don't consider directories as data files
skeleton/__pkginfo__.py.tmpl
--- a/skeleton/__pkginfo__.py.tmpl	Wed Apr 22 16:02:33 2009 +0200
+++ b/skeleton/__pkginfo__.py.tmpl	Wed Apr 22 18:58:47 2009 +0200
@@ -31,7 +31,8 @@
 def listdir(dirpath):
     return [join(dirpath, fname) for fname in _listdir(dirpath)
             if fname[0] != '.' and not fname.endswith('.pyc')
-            and not fname.endswith('~')]
+            and not fname.endswith('~')
+            and not isdir(join(dirpath, fname))]ΒΆ
 
 from glob import glob
 try: