def install_extensions(self, extensions):
        pip_args = ["install"] + [extension[0] for extension in extensions]
        pip.main(pip_args)
        extra_settings = []
        for extension in extensions:
            module = __import__(extension[1], locals(), globals(), [])
            basedir = os.path.dirname(module.__file__)
            if not os.path.exists("{0}/settings.py".format(basedir)):
                continue
            extra_settings.append(extension[1])
        return extra_settings
Install one or more extensions.
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/commands/deploy.py/DeployCommand.install_extensions