mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Build the 'outfiles' list so 'get_outputs()' has something to return.
(Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
This commit is contained in:
parent
e2383a6c77
commit
afc224beec
2 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue