[Python-checkins] CVS: distutils/distutils/command install_headers.py,1.1,1.2
Greg Ward
python-dev@python.org
2000年6月20日 20:13:54 -0700
Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21126
Modified Files:
install_headers.py
Log Message:
Build the 'outfiles' list so 'get_outputs()' has something to return.
(Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
Index: install_headers.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/install_headers.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** install_headers.py 2000年05月27日 01:25:16 1.1
--- install_headers.py 2000年06月21日 03:13:51 1.2
***************
*** 8,11 ****
--- 8,12 ----
__revision__ = "$Id$"
+ import os
from distutils.core import Command
***************
*** 22,25 ****
--- 23,27 ----
def initialize_options (self):
self.install_dir = None
+ self.outfiles = []
def finalize_options (self):
***************
*** 34,39 ****
self.mkpath(self.install_dir)
for header in headers:
! self.copy_file(header, self.install_dir)
# run()
--- 36,47 ----
self.mkpath(self.install_dir)
for header in headers:
! 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()