]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distutils/command/install_headers.py
1 """distutils.command.install_headers
3 Implements the Distutils 'install_headers' command, to install C/C++ header
4 files to the Python include directory."""
6 # This module should be kept compatible with Python 1.5.2.
11 from distutils
.core
import Command
14 class install_headers (Command
):
16 description
= "install C/C++ header files"
18 user_options
= [('install-dir=', 'd',
19 "directory to install header files to"),
21 "force installation (overwrite existing files)"),
24 boolean_options
= ['force']
26 def initialize_options (self
):
27 self
.install_dir
= None
31 def finalize_options (self
):
32 self
.set_undefined_options('install',
33 ('install_headers', 'install_dir'),
38 headers
= self
.distribution
.headers
42 self
.mkpath(self
.install_dir
)
43 for header
in headers
:
44 (out
, _
) = self
.copy_file(header
, self
.install_dir
)
45 self
.outfiles
.append(out
)
47 def get_inputs (self
):
48 return self
.distribution
.headers
or []
50 def get_outputs (self
):
53 # class install_headers