Package ctypes :: Package macholib :: Module framework
[hide private]
[frames] | no frames]

Module framework

Generic framework path manipulation

Functions [hide private]
 
framework_info(filename)
A framework name can take one of the following four forms: Location/Name.framework/Versions/SomeVersion/Name_Suffix Location/Name.framework/Versions/SomeVersion/Name Location/Name.framework/Name_Suffix Location/Name.framework/Name
 
test_framework_info()
Variables [hide private]
  STRICT_FRAMEWORK_RE = re.compile(r'(?x)(?P<location>^.*)(?:^|/...

Imports: re


Function Details [hide private]

framework_info(filename)

 

A framework name can take one of the following four forms:
    Location/Name.framework/Versions/SomeVersion/Name_Suffix
    Location/Name.framework/Versions/SomeVersion/Name
    Location/Name.framework/Name_Suffix
    Location/Name.framework/Name

returns None if not found, or a mapping equivalent to:
    dict(
        location='Location',
        name='Name.framework/Versions/SomeVersion/Name_Suffix',
        shortname='Name',
        version='SomeVersion',
        suffix='Suffix',
    )

Note that SomeVersion and Suffix are optional and may be None
if not present


Variables Details [hide private]

STRICT_FRAMEWORK_RE

Value:
re.compile(r'(?x)(?P<location>^.*)(?:^|/)(?P<name>(?P<shortname>\w+).f\
ramework/(?:Versions/(?P<version>[^/]+)/)?\3(?:_(?P<suffix>[^_]+))?)$'\
)