2000-05-11 22:58:29 -03:00
|
|
|
"""distutils.command.install_data
|
|
|
|
|
|
|
|
Implements the Distutils 'install_data' command, for installing
|
|
|
|
platform-independent data files."""
|
|
|
|
|
|
|
|
# contributed by Bastian Kleineidam
|
|
|
|
|
|
|
|
__revision__ = "$Id$"
|
|
|
|
|
2000-05-11 21:52:23 -03:00
|
|
|
from distutils.cmd import install_misc
|
|
|
|
|
|
|
|
class install_data (install_misc):
|
|
|
|
|
|
|
|
description = "install data files"
|
|
|
|
|
|
|
|
def finalize_options (self):
|
|
|
|
self._install_dir_from('install_data')
|
|
|
|
|
|
|
|
def run (self):
|
2000-05-13 00:09:50 -03:00
|
|
|
self._copy_files(self.distribution.data_files)
|
2000-05-13 00:07:53 -03:00
|
|
|
|
|
|
|
def get_inputs (self):
|
2000-05-13 00:09:50 -03:00
|
|
|
return self.distribution.data_files or []
|