def METHOD_NAME(self):
    # Explicit request for old-style install?  Just do it
    if self.old_and_unmanageable or self.single_version_externally_managed:
        return orig.install.METHOD_NAME(self)
    if not self._called_from_setup(inspect.currentframe()):
        # Run in backward-compatibility mode to support bdist_* commands.
        orig.install.METHOD_NAME(self)
    else:
        self.do_egg_install()