Skip to content

Commit

Permalink
Do not append dirs without files in it
Browse files Browse the repository at this point in the history
Otherwise python distutils --record would list a directory when it
shouldn't.
  • Loading branch information
william-gr authored and unho committed May 12, 2015
1 parent 2a34c58 commit edb8a4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ def listfiles(srcdir):
for subdir in ['docs', 'share']:
docwalk = os.walk(subdir)
for docs in docwalk:
docfiles.append(listfiles(docs[0]))
files = listfiles(docs[0])
if files[1]:
docfiles.append(files)
datafiles += docfiles
return datafiles

Expand Down

0 comments on commit edb8a4c

Please sign in to comment.