From: Gregory P. Smith Date: Sat, 13 May 2000 03:09:50 +0000 (+0000) Subject: List data files are listed in the Distribution attribute 'data_files', X-Git-Tag: v2.0b1~1727 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a901dd1bd1d2cfdd744bf7524ccb9b890b28d06;p=thirdparty%2FPython%2Fcpython.git List data files are listed in the Distribution attribute 'data_files', rather than 'data'. --- diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 448614b050f2..fd9836b607e5 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -17,7 +17,7 @@ class install_data (install_misc): self._install_dir_from('install_data') def run (self): - self._copy_files(self.distribution.data) + self._copy_files(self.distribution.data_files) def get_inputs (self): - return self.distribution.data or [] + return self.distribution.data_files or [] diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 998cff719022..24c8d2b85348 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -155,7 +155,7 @@ class Distribution: self.include_dirs = None self.extra_path = None self.scripts = None - self.data = None + self.data_files = None # And now initialize bookkeeping stuff that can't be supplied by # the caller at all. 'command_obj' maps command names to