diff options
author | Thiebaud Weksteen <tweek@google.com> | 2016-11-01 15:54:23 +1100 |
---|---|---|
committer | Thiebaud Weksteen <tweek@google.com> | 2016-11-21 10:48:30 +1100 |
commit | 11b921f2e17586e394639e7ddbcaeae727ece4d0 (patch) | |
tree | 742e12affdeb824997e65156a6df61bebb15c58d /setuptools/command/sdist.py | |
parent | a64fcd4860742158669474a9107921345bbc65c1 (diff) | |
download | external_python_setuptools-11b921f2e17586e394639e7ddbcaeae727ece4d0.tar.gz external_python_setuptools-11b921f2e17586e394639e7ddbcaeae727ece4d0.tar.bz2 external_python_setuptools-11b921f2e17586e394639e7ddbcaeae727ece4d0.zip |
Change _add_defaults_data_files override and add unittest
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 9975753d..ba980622 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -142,9 +142,10 @@ class sdist(sdist_add_defaults, orig.sdist): for filename in filenames]) def _add_defaults_data_files(self): - """ - Don't add any data files, but why? - """ + try: + sdist_add_defaults._add_defaults_data_files(self) + except TypeError: + log.warn("data_files contains unexpected objects") def check_readme(self): for f in self.READMES: |