aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/sdist.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-xsetuptools/command/sdist.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index ba980622..84e29a1b 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -143,7 +143,10 @@ class sdist(sdist_add_defaults, orig.sdist):
def _add_defaults_data_files(self):
try:
- sdist_add_defaults._add_defaults_data_files(self)
+ if six.PY2:
+ sdist_add_defaults._add_defaults_data_files(self)
+ else:
+ super()._add_defaults_data_files()
except TypeError:
log.warn("data_files contains unexpected objects")