Commit 8f0ac47d authored by Jason R. Coombs's avatar Jason R. Coombs

Filter non-files in find_data_files. Fixes #261.

parent 2d765a69
......@@ -9,7 +9,7 @@ import distutils.errors
import collections
import itertools
from setuptools.extern.six.moves import map
from setuptools.extern.six.moves import map, filter
try:
from setuptools.lib2to3_ex import Mixin2to3
......@@ -105,7 +105,7 @@ class build_py(orig.build_py, Mixin2to3):
)
# flatten the expanded globs into an iterable of matches
globs_matches = itertools.chain.from_iterable(globs_expanded)
glob_files = globs_matches
glob_files = filter(os.path.isfile, globs_matches)
files = list(itertools.chain(
self.manifest_files.get(package, []),
glob_files,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment