diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-22 15:18:32 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-22 15:18:32 -0400 |
commit | 8f0ac47db9fe2934725aa9c8a7b0089451ed033d (patch) | |
tree | 947d2ab7006f735a8f246bbb8b08bc5372a4ea49 | |
parent | 2d765a69b19bb92882582249942d607684dd14eb (diff) | |
download | external_python_setuptools-8f0ac47db9fe2934725aa9c8a7b0089451ed033d.tar.gz external_python_setuptools-8f0ac47db9fe2934725aa9c8a7b0089451ed033d.tar.bz2 external_python_setuptools-8f0ac47db9fe2934725aa9c8a7b0089451ed033d.zip |
Filter non-files in find_data_files. Fixes #261.
-rw-r--r-- | setuptools/command/build_py.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index 34f39037..23e8b31c 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -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, |