distutils.command.build_ext
index
/usr/lib/python2.1/distutils/command/build_ext.py

distutils.command.build_ext
 
Implements the Distutils 'build_ext' command, for building extension
modules (currently limited to C extensions, should accommodate C++
extensions ASAP).

 
Modules
            
os
re
string
sys

 
Classes
            
distutils.cmd.Command
build_ext

 
class build_ext(distutils.cmd.Command)
       
  
__getattr__(self, attr) from distutils.cmd.Command
__init__(self, dist) from distutils.cmd.Command
_ensure_stringlike(self, option, what, default=None) from distutils.cmd.Command
_ensure_tested_string(self, option, tester, what, error_fmt, default=None) from distutils.cmd.Command
announce(self, msg, level=1) from distutils.cmd.Command
build_extension(self, ext)
build_extensions(self)
check_extensions_list(self, extensions)
Ensure that the list of extensions (presumably provided as a
command option 'extensions') is valid, i.e. it is a list of
Extension objects.  We also support the old-style list of 2-tuples,
where the tuples are (ext_name, build_info), which are converted to
Extension instances here.
 
Raise DistutilsSetupError if the structure is invalid anywhere;
just returns otherwise.
copy_file(self, infile, outfile, preserve_mode=1, preserve_times=1, link=None, level=1) from distutils.cmd.Command
copy_tree(self, infile, outfile, preserve_mode=1, preserve_times=1, preserve_symlinks=0, level=1) from distutils.cmd.Command
debug_print(self, msg) from distutils.cmd.Command
dump_options(self, header=None, indent='') from distutils.cmd.Command
ensure_dirname(self, option) from distutils.cmd.Command
ensure_filename(self, option) from distutils.cmd.Command
ensure_finalized(self) from distutils.cmd.Command
ensure_string(self, option, default=None) from distutils.cmd.Command
ensure_string_list(self, option) from distutils.cmd.Command
execute(self, func, args, msg=None, level=1) from distutils.cmd.Command
finalize_options(self)
find_swig(self)
Return the name of the SWIG executable.  On Unix, this is
just "swig" -- it should be in the PATH.  Tries a bit harder on
Windows.
get_command_name(self) from distutils.cmd.Command
get_export_symbols(self, ext)
Return the list of symbols that a shared extension has to
export.  This either uses 'ext.export_symbols' or, if it's not
provided, "init" + module_name.  Only relevant on Windows, where
the .pyd file (DLL) must export the module "init" function.
get_ext_filename(self, ext_name)
Convert the name of an extension (eg. "foo.bar") into the name
of the file from which it will be loaded (eg. "foo/bar.so", or
"foo\bar.pyd").
get_ext_fullname(self, ext_name)
get_finalized_command(self, command, create=1) from distutils.cmd.Command
get_libraries(self, ext)
Return the list of libraries to link against when building a
shared extension.  On most platforms, this is just 'ext.libraries';
on Windows, we add the Python library (eg. python20.dll).
get_outputs(self)
get_source_files(self)
get_sub_commands(self) from distutils.cmd.Command
initialize_options(self)
make_archive(self, base_name, format, root_dir=None, base_dir=None) from distutils.cmd.Command
make_file(self, infiles, outfile, func, args, exec_msg=None, skip_msg=None, level=1) from distutils.cmd.Command
mkpath(self, name, mode=511) from distutils.cmd.Command
move_file(self, src, dst, level=1) from distutils.cmd.Command
reinitialize_command(self, command, reinit_subcommands=0) from distutils.cmd.Command
run(self)
run_command(self, command) from distutils.cmd.Command
set_undefined_options(self, src_cmd, *option_pairs) from distutils.cmd.Command
spawn(self, cmd, search_path=1, level=1) from distutils.cmd.Command
swig_sources(self, sources)
Walk the list of source files in 'sources', looking for SWIG
interface (.i) files.  Run SWIG on all that are found, and
return a modified 'sources' list with SWIG source files replaced
by the generated C (or C++) files.
warn(self, msg) from distutils.cmd.Command

 
Functions
            
show_compilers()

 
Data
             BufferType = <type 'buffer'>
BuiltinFunctionType = <type 'builtin_function_or_method'>
BuiltinMethodType = <type 'builtin_function_or_method'>
ClassType = <type 'class'>
CodeType = <type 'code'>
ComplexType = <type 'complex'>
DictType = <type 'dictionary'>
DictionaryType = <type 'dictionary'>
EllipsisType = <type 'ellipsis'>
FileType = <type 'file'>
FloatType = <type 'float'>
FrameType = <type 'frame'>
FunctionType = <type 'function'>
InstanceType = <type 'instance'>
IntType = <type 'int'>
LambdaType = <type 'function'>
ListType = <type 'list'>
LongType = <type 'long int'>
MethodType = <type 'instance method'>
ModuleType = <type 'module'>
NoneType = <type 'None'>
SliceType = <type 'slice'>
StringType = <type 'string'>
TracebackType = <type 'traceback'>
TupleType = <type 'tuple'>
TypeType = <type 'type'>
UnboundMethodType = <type 'instance method'>
UnicodeType = <type 'unicode'>
XRangeType = <type 'xrange'>
__file__ = '/usr/lib/python2.1/distutils/command/build_ext.pyc'
__name__ = 'distutils.command.build_ext'
__revision__ = '$Id: build_ext.py,v 1.74 2001/03/17 20:15:41 akuchling Exp $'
extension_name_re = <SRE_Pattern object>