Back to index

python3.2  3.2.2
Classes | Functions | Variables
distutils.command.config Namespace Reference


class  config


def dump_file


dictionary LANG_EXT = {"c": ".c", "c++": ".cxx"}

Detailed Description


Implements the Distutils 'config' command, a (mostly) empty command class
that exists mainly to be sub-classed by specific module distributions and
applications.  The idea is that while every "config" command is different,
at least they're all named the same, and users always see "config" in the
list of standard commands.  Also, this is a good place to put common
configure-like tasks: "try to compile this C code", or "figure out where
this header file lives".

Function Documentation

def distutils.command.config.dump_file (   filename,
  head = None 
Dumps a file content into

If head is not None, will be dumped before the file content.

Definition at line 334 of file

00335 def dump_file(filename, head=None):
00336     """Dumps a file content into
00338     If head is not None, will be dumped before the file content.
00339     """
00340     if head is None:
00341'%s' % filename)
00342     else:
00344     file = open(filename)
00345     try:
00347     finally:
00348         file.close()

Here is the caller graph for this function:

Variable Documentation

dictionary distutils.command.config.LANG_EXT = {"c": ".c", "c++": ".cxx"}

Definition at line 19 of file