summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install_headers.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-21 03:13:51 (GMT)
committerGreg Ward <gward@python.net>2000-06-21 03:13:51 (GMT)
commitafc224beeca432d8261be5d647a931fe3b8d0193 (patch)
treecea9dbaf6ee7d9d49eb1bf1064d2977da234a766 /Lib/distutils/command/install_headers.py
parente2383a6c774e41357824db4ea1db0b06182fe672 (diff)
downloadcpython-afc224beeca432d8261be5d647a931fe3b8d0193.zip
cpython-afc224beeca432d8261be5d647a931fe3b8d0193.tar.gz
cpython-afc224beeca432d8261be5d647a931fe3b8d0193.tar.bz2
Build the 'outfiles' list so 'get_outputs()' has something to return.
(Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
Diffstat (limited to 'Lib/distutils/command/install_headers.py')
-rw-r--r--Lib/distutils/command/install_headers.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/distutils/command/install_headers.py b/Lib/distutils/command/install_headers.py
index 33edb94..afcc887 100644
--- a/Lib/distutils/command/install_headers.py
+++ b/Lib/distutils/command/install_headers.py
@@ -7,6 +7,7 @@ files to the Python include directory."""
__revision__ = "$Id$"
+import os
from distutils.core import Command
@@ -21,6 +22,7 @@ class install_headers (Command):
def initialize_options (self):
self.install_dir = None
+ self.outfiles = []
def finalize_options (self):
self.set_undefined_options('install',
@@ -33,8 +35,14 @@ class install_headers (Command):
self.mkpath(self.install_dir)
for header in headers:
- self.copy_file(header, self.install_dir)
+ out = self.copy_file(header, self.install_dir)
+ self.outfiles.append(out)
+ def get_inputs (self):
+ return self.distribution.headers or []
+
+ def get_outputs (self):
+ return self.outfiles
# run()
# class install_headers