# Module e.c.u.dist

Part of elisa.core.utils

Functions used to extend setuptools and add elisa specific metadata when distributing plugins.

Line # | Kind | Name | Docs
--- | --- | --- | ---
51 | Class | Distribution | Undocumented
66 | Class | SDist | Undocumented
118 | Class | LocaleBuildPy | create .mo files from .po locales if needed
129 | Class | TrialTest | Twisted Trial setuptools command
185 | Class | Clean | Undocumented
200 | Function | override_check_test_suite | Undocumented
207 | Function | write_dict | DOCME
221 | Function | mappings_from_text | Unserialise mappings from a string `text`. Mappings are list of
246 | Function | text_from_mappings | Takes a `mappings` and return a serialised form. Mappings are list of
269 | Function | read_mappings | Setuptools compliant deserialiser for mappings.
276 | Function | write_mappings | Setuptools compliant serialiser for mappings.
285 | Function | assert_list_of_string_tuples_or_none | Verify that value is a list of tuples of string
296 | Function | assert_dict_or_none | Verify that value is a dictionary
302 | Function | find_packages_internal | Undocumented
317 | Function | find_packages | Undocumented
334 | Function | find_plugins | Undocumented
372 | Function | elisa_setup | Undocumented
418 | Class | bdist_elisa | A customized bdist_egg command that creates .elisa.egg files. They
432 | Class | build_po | Compile po files to mo files and ship mo files as package_data of

def override_check_test_suite(dist, attr, value):
Undocumented
def write_dict(cmd, basename, filename, force=False):
DOCME

def mappings_from_text(text):

    Unserialise mappings from a string L{text}. Mappings are list of
    2-uplets.

    Example:

        key1 = value1
        key2 = value2a
        key2 = value2b

    is deserialised into:

        [("key1", "value1"), ("key2", "value2a"), ("key2", "value2b")]

def text_from_mappings(mappings):

    Takes a L{mappings} and return a serialised form. Mappings are list of
    2-uplets.

    Example:

        [("key1", "value1"), ("key2", "value2a"), ("key2", "value2b")]

    is serialised into:

        key1 = value1
        key2 = value2a
        key2 = value2b

def read_mappings(iter_lines):
Setuptools compliant deserialiser for mappings.

def write_mappings(cmd, basename, filename, force=False):
Setuptools compliant serialiser for mappings.

def assert_list_of_string_tuples_or_none(dist, attr, value):
Verify that value is a list of tuples of string

def assert_dict_or_none(dist, attr, value):
Verify that value is a dictionary

def find_packages_internal(path='.'):
Undocumented
def find_packages(path='.'):
Undocumented
def find_plugins(bundle_name, plugins_dir='.', prefix='', excludes=()):
Undocumented
def elisa_setup(name, description, long_description, version, license, author, author_email, namespace, plugins_dir):
Undocumented