From: Gregory P. Smith Date: Sat, 13 May 2000 03:07:53 +0000 (+0000) Subject: Added 'get_inputs()' methods, needed by the "install" command's X-Git-Tag: v2.0b1~1729 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e30b7a91c742ded4921c01f7ad8bb053f2c3ab32;p=python Added 'get_inputs()' methods, needed by the "install" command's 'get_inputs()'. --- diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 95ef423127..448614b050 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -18,3 +18,6 @@ class install_data (install_misc): def run (self): self._copy_files(self.distribution.data) + + def get_inputs (self): + return self.distribution.data or [] diff --git a/Lib/distutils/command/install_scripts.py b/Lib/distutils/command/install_scripts.py index 4e23efc8b6..43e5fc18bc 100644 --- a/Lib/distutils/command/install_scripts.py +++ b/Lib/distutils/command/install_scripts.py @@ -32,4 +32,7 @@ class install_scripts(install_misc): self.announce("changing mode of %s to %o" % (file, mode)) os.chmod(file, mode) + def get_inputs (self): + return self.distribution.scripts or [] + # class install_scripts