'Expect installs libraries into:
lib/expect5.45/libexpect5.45.so
Create a symlink so that the library can be found in lib.'

@run_after('install')
def symlink_library(self):

    target = join_path(self.prefix.lib, 'expect*', 'libexpect*')
    target = glob.glob(target)[0]
    link_name = os.path.basename(target)
    link_name = join_path(self.prefix.lib, link_name)
    symlink(target, link_name)
