def METHOD_NAME(self):
    if self.root or self.single_version_externally_managed:
        # explicit backward-compatibility mode, allow extra_path to work
        return orig.install.METHOD_NAME(self)
    # Ignore extra_path when installing an egg (or being run by another
    # command without --root or --single-version-externally-managed
    self.path_file = None
    self.extra_dirs = ''