]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
List data files are listed in the Distribution attribute 'data_files',
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 03:09:50 +0000 (03:09 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 13 May 2000 03:09:50 +0000 (03:09 +0000)
rather than 'data'.

Lib/distutils/command/install_data.py
Lib/distutils/dist.py

index 448614b050f23f713412cf68ad78cce24d6a695d..fd9836b607e556bf88de1840acaac1cfd59c9e92 100644 (file)
@@ -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 []
index 998cff7190229779bc9d044169eba41a8133e57b..24c8d2b85348869070fd4c689f6fac31c5c02b5f 100644 (file)
@@ -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