summaryrefslogtreecommitdiff
path: root/distutils2/command/install_headers.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-08-18 10:11:00 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-08-18 10:11:00 +0100
commit1797898898a76efb0f3e78b394675033f3c2fad2 (patch)
tree46b8e37163c2b739fe36bddf2fb211910a1a545c /distutils2/command/install_headers.py
parentcd2c1aa7aa06eae25f9b06a1aa75821f5baf3dda (diff)
downloaddisutils2-1797898898a76efb0f3e78b394675033f3c2fad2.tar.gz
Backported packaging from cpython default, overwriting previous version.
Diffstat (limited to 'distutils2/command/install_headers.py')
-rw-r--r--distutils2/command/install_headers.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/distutils2/command/install_headers.py b/distutils2/command/install_headers.py
index 86db07f..790d1d6 100644
--- a/distutils2/command/install_headers.py
+++ b/distutils2/command/install_headers.py
@@ -1,8 +1,4 @@
-"""distutils.command.install_headers
-
-Implements the Distutils 'install_headers' command, to install C/C++ header
-files to the Python include directory."""
-
+"""Install C/C++ header files to the Python include directory."""
from distutils2.command.cmd import Command
@@ -22,7 +18,7 @@ class install_headers(Command):
def initialize_options(self):
self.install_dir = None
- self.force = 0
+ self.force = False
self.outfiles = []
def finalize_options(self):
@@ -37,7 +33,7 @@ class install_headers(Command):
self.mkpath(self.install_dir)
for header in headers:
- (out, _) = self.copy_file(header, self.install_dir)
+ out = self.copy_file(header, self.install_dir)[0]
self.outfiles.append(out)
def get_inputs(self):
@@ -45,5 +41,3 @@ class install_headers(Command):
def get_outputs(self):
return self.outfiles
-
-# class install_headers