def METHOD_NAME(self):
    easy_install = self.distribution.get_command_class('easy_install')
    cmd = easy_install(
        self.distribution, args="x", root=self.root, record=self.record,
    )
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
    cmd.always_copy_from = '.'  # make sure local-dir eggs get installed
    # pick up setup-dir .egg files only: no .egg-info
    cmd.package_index.scan(glob.glob('*.egg'))
    self.run_command('bdist_egg')
    args = [self.distribution.get_command_obj('bdist_egg').egg_output]
    if setuptools.bootstrap_install_from:
        # Bootstrap self-installation of setuptools
        args.insert(0, setuptools.bootstrap_install_from)
    cmd.args = args
    cmd.run(show_deprecation=False)
    setuptools.bootstrap_install_from = None