Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
distutils.command.install_headers.install_headers Class Reference
Inheritance diagram for distutils.command.install_headers.install_headers:
Inheritance graph
[legend]
Collaboration diagram for distutils.command.install_headers.install_headers:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def initialize_options
def finalize_options
def run
def get_inputs
def get_outputs

Public Attributes

 install_dir
 force
 outfiles

Static Public Attributes

string description = "install C/C++ header files"
list user_options
list boolean_options = ['force']

Detailed Description

Definition at line 10 of file install_headers.py.


Member Function Documentation

Definition at line 27 of file install_headers.py.

00027 
00028     def finalize_options(self):
00029         self.set_undefined_options('install',
00030                                    ('install_headers', 'install_dir'),
00031                                    ('force', 'force'))
00032 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 43 of file install_headers.py.

00043 
00044     def get_inputs(self):
00045         return self.distribution.headers or []

Definition at line 46 of file install_headers.py.

00046 
00047     def get_outputs(self):
00048         return self.outfiles

Definition at line 22 of file install_headers.py.

00022 
00023     def initialize_options(self):
00024         self.install_dir = None
00025         self.force = 0
00026         self.outfiles = []

Definition at line 33 of file install_headers.py.

00033 
00034     def run(self):
00035         headers = self.distribution.headers
00036         if not headers:
00037             return
00038 
00039         self.mkpath(self.install_dir)
00040         for header in headers:
00041             (out, _) = self.copy_file(header, self.install_dir)
00042             self.outfiles.append(out)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 20 of file install_headers.py.

Definition at line 12 of file install_headers.py.

Definition at line 24 of file install_headers.py.

Definition at line 23 of file install_headers.py.

Definition at line 25 of file install_headers.py.

Initial value:
[('install-dir=', 'd',
                     "directory to install header files to"),
                    ('force', 'f',
                     "force installation (overwrite existing files)"),
                   ]

Definition at line 14 of file install_headers.py.


The documentation for this class was generated from the following file: