# Module k.dist

Part of kiwi

Distutils extensions and utilities

Class | _VariableExtender | No class docstring; 1/2 methods documented
Class | KiwiInstallLib | Undocumented
Class | KiwiInstallData | Undocumented
Function | get_site_packages_dir | Gets the relative path of the site-packages directory
Function | listfiles | Lists all files in directories and optionally uses basic shell
Function | compile_po_files | Compiles po files to mo files.
Function | listpackages | Recursivly list all packages in directory root
Function | setup | A drop in replacement for distutils.core.setup which

def get_site_packages_dir(*dirs):

Gets the relative path of the site-packages directory

This is mainly useful for setup.py usage:

    >>> setup(...
              data_files=[(get_site_packages_dir('foo'),
                           files..)])

where files is a list of files to be installed in a directory called foo created in your site-packages directory

Parameters | dirs | directory names to be appended

def listfiles(*dirs):
Lists all files in directories and optionally uses basic shell matching, example:

    >>> listfiles('data', 'glade', '*.glade')
    ['data/glade/Foo.glade', 'data/glade/Bar.glade', ...]

Parameters | dirs | directory parts

def compile_po_files(domain, dirname='locale'):
Compiles po files to mo files. Note. this function depends on gettext utilities being installed

Parameters | domain | gettext domain
| dirname | base directory
Returns | a list of po files

def listpackages(root, exclude=None):
Recursivly list all packages in directory root Optionally exclude can be specified which is a string like foo/bar.

Parameters | root | directory
| exclude | optional packages to be skipped

def setup(**kwargs):
A drop in replacement for distutils.core.setup which integrates nicely with kiwi.environ

Variables | resources |
| global_resources |
| templates | List of templates to install