diff options
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 1d4f5d54..52c58055 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -150,9 +150,8 @@ class sdist(orig.sdist): optional = ['test/test*.py', 'setup.cfg'] for pattern in optional: - files = list(filter(cs_path_exists, glob(pattern))) - if files: - self.filelist.extend(files) + files = filter(cs_path_exists, glob(pattern)) + self.filelist.extend(files) # getting python files if self.distribution.has_pure_modules(): |