'Set up the dependencies for this test.
deps is a list of libraries required for this test.'

def setup_dep(self, deps):

    for dep in deps:
        dep_dir = os.path.join(self.autodir, 'deps', dep)
        try:
            self.install_pkg(dep, 'dep', dep_dir)
        except error.PackageInstallError:
            pass
        if (not os.path.exists(dep_dir)):
            raise error.TestError(('Dependency    %s    does    not    exist' % dep))
        os.chdir(dep_dir)
        if (execfile(('%s.py' % dep), {}) is None):
            logging.info('Dependency    %s    successfully    built', dep)
