4Suite API Documentation: Ft.Lib.DistExt.Config

4Suite™ API Documentation

# ► Module Ft.Lib.DistExt.Config

Classes: Config |  |  |  | Functions: get_python_lib |  |  |  | Globals: CACHE_FILENAME, CONFIG_KEYS, CONFIG_SCHEMES, DEBUG

## Classes

class Config(distutils.cmd.Command)

  ### Methods

  finalize_config_vars(self)
  finalize_options(self)
    Overrides: finalize_options from class Command
  finalize_other(self)
  finalize_posix(self)
  initialize_options(self)
    Overrides: initialize_options from class Command
  run(self)
    Overrides: run from class Command

  ### Methods inherited from class distutils.cmd.Command

  __getattr__, __init__, announce, copy_file, copy_tree, debug_print, dump_options, ensure_dirname, ensure_filename, ensure_finalized, ensure_string, ensure_string_list, execute, get_command_name, get_finalized_command, get_sub_commands, make_archive, make_file, mkpath, move_file, reinitialize_command, run_command, set_undefined_options, spawn, warn

  ### Members

  boolean_options = ['local', 'system', 'debug']
  command_name = 'config'
  description = 'select installation scheme and base directories'
  help_options = [('help-compiler', None, 'list available compilers', <function show_compilers at 0xb7c5d4c4>)]
  user_options = [('prefix=', None, 'Use POSIX autoconf-style or Windows installation scheme with this prefix'), ('exec-prefix=', None, 'Prefix for platform-specific files (for use with --prefix)'), ('local', None, 'Use FHS /usr/local installation scheme [default]'), ('system', None, 'Use FHS /usr installation scheme (e.g. for RPM builds)'), ('home=', None, 'Use home directory installation scheme with this prefix'), ('pythonlibdir=', None, 'Directory for 3rd-party Python libraries (site-packages)'), ('includedir=', None, 'Directory for C header files'), ('bindir=', None, 'Directory for user executables'), ('datadir=', None, 'Directory for read-only platform-independent data'), ('sysconfdir=', None, 'Directory for read-only host-specific data'), ('localstatedir=', None, 'Directory for modifiable host-specific data'), ('libdir=', None, 'Directory for program & package libraries'), ('docdir=', None, 'Directory for documentation files'), ('localedir=', None, 'Directory for message catalogs'), ('mandir=', None, 'Directory for man documentation'), ('compiler=', 'c', 'specify the compiler type'), ('debug', 'g', 'compile extensions and libraries with debugging information'), ('plat-name=', 'p', 'target platform for compiling extensions and libraries (default: linux-i686)')]

  ### Members inherited from class distutils.cmd.Command

  sub_commands

## Functions

get_python_lib(prefix)

## Globals

CACHE_FILENAME = 'config.cache'
CONFIG_KEYS = ('prefix', 'exec_prefix', 'pythonlibdir', 'includedir', 'bindir', 'datadir', 'sysconfdir', 'localstatedir', 'libdir', 'docdir', 'localedir', 'mandir', 'compiler', 'debug')
CONFIG_SCHEMES = {'fhs_local': {'bindir': '/usr/local/bin', 'datadir': '/usr/local/share/$name', 'docdir': '/usr/local/share/doc/$name', 'includedir': '/usr/local/include/$name', 'libdir': '/usr/local/lib/$name', 'localedir': '/usr/local/share/locale', 'localstatedir': '/var/local/lib/$name', 'mandir': '/usr/local/share/man', 'pythonlibdir': '/usr/local/lib/python2.5/site-packages', 'sysconfdir': '/usr/local/etc/$name'}, 'fhs_system': {'bindir': '/usr/bin', 'datadir': '/usr/share/$name', 'docdir': '/usr/share/doc/$name', 'includedir': '/usr/include/$name', 'libdir': '/usr/lib/$name', 'localedir': '/usr/share/locale', 'localstatedir': '/var/lib/$name', 'mandir': '/usr/share/man', 'pythonlibdir': '/usr/lib/python2.5/site-packages', 'sysconfdir': '/etc/$name'}, 'nt': {'bindir': '$prefix/Scripts', 'datadir': '$prefix/Share/$name', 'docdir': '$prefix/Share/Doc/$name', 'includedir': '$prefix/Include/$name', 'libdir': '$prefix/Share/$name', 'localedir': '$prefix/Share/Locale', 'localstatedir': '$prefix/Share/$name', 'mandir': '$prefix/Share/Help', 'pythonlibdir': '$prefix/Lib/site-packages', 'sysconfdir': '$prefix/Share/Settings/$name'}, 'other': {'bindir': '$prefix/Scripts', 'datadir': '$prefix/Share/$name', 'docdir': '$prefix/Share/Doc/$name', 'includedir': '$prefix/Include/$name', 'libdir': '$prefix/Share/$name', 'localedir': '$prefix/Share/Locale', 'localstatedir': '$prefix/Share/$name', 'mandir': '$prefix/Share/Help', 'pythonlibdir': '$prefix/Lib/site-packages', 'sysconfdir': '$prefix/Share/Settings/$name'}, 'posix_autoconf': {'bindir': '$exec_prefix/bin', 'datadir': '$prefix/share/$name', 'docdir': '$prefix/share/doc/$name', 'includedir': '$prefix/include/$name', 'libdir': '$exec_prefix/lib/$name', 'localedir': '$datadir/locale', 'localstatedir': '$exec_prefix/var/$name', 'mandir': '$prefix/man', 'pythonlibdir': '/usr/lib/python2.5/site-packages', 'sysconfdir': '$prefix/etc/$name'}, 'posix_home': {'bindir': '$prefix/bin', 'datadir': '$prefix/share/$name', 'docdir': '$prefix/share/doc/$name', 'includedir': '$prefix/include/python$python_version/$name', 'libdir': '$prefix/lib/$name', 'localedir': '$prefix/share/locale', 'localstatedir': '$prefix/share/var/$name', 'mandir': '$prefix/share/man', 'pythonlibdir': '$prefix/lib/python$python_version', 'sysconfdir': '$prefix/share/etc/$name'}}
DEBUG = None