def get_aliases(self):
    '\n        If the versioned library name is libfoo.so.0.100.0, aliases are:\n        * libfoo.so.0 (soversion) -> libfoo.so.0.100.0\n        * libfoo.so (unversioned; for linking) -> libfoo.so.0\n        Same for dylib:\n        * libfoo.dylib (unversioned; for linking) -> libfoo.0.dylib\n        '
    aliases = {}
    if ((self.suffix not in ('so', 'dylib')) or (not self.soversion)):
        return {}
    if ((self.suffix == 'so') and self.ltversion and (self.ltversion != self.soversion)):
        alias_tpl = self.filename_tpl.replace('ltversion', 'soversion')
        ltversion_filename = alias_tpl.format(self)
        aliases[ltversion_filename] = self.filename
    else:
        ltversion_filename = self.filename
    aliases[self.basic_filename_tpl.format(self)] = ltversion_filename
    return aliases
If the versioned library name is libfoo.so.0.100.0, aliases are:
* libfoo.so.0 (soversion) -> libfoo.so.0.100.0
* libfoo.so (unversioned; for linking) -> libfoo.so.0
Same for dylib:
* libfoo.dylib (unversioned; for linking) -> libfoo.0.dylib
def get_aliases(self):
    '\n        If the versioned library name is libfoo.so.0.100.0, aliases are:\n        * libfoo.so.0 (soversion) -> libfoo.so.0.100.0\n        * libfoo.so (unversioned; for linking) -> libfoo.so.0\n        Same for dylib:\n        * libfoo.dylib (unversioned; for linking) -> libfoo.0.dylib\n        '
    aliases = {}
    if ((self.suffix not in ('so', 'dylib')) or (not self.soversion)):
        return {}
    if ((self.suffix == 'so') and self.ltversion and (self.ltversion != self.soversion)):
        alias_tpl = self.filename_tpl.replace('ltversion', 'soversion')
        ltversion_filename = alias_tpl.format(self)
        aliases[ltversion_filename] = self.filename
    else:
        ltversion_filename = self.filename
    aliases[self.basic_filename_tpl.format(self)] = ltversion_filename
    return aliases