def remove(self, dist):
        """Remove `dist` from the distribution map"""
        while dist.location in self.paths:
            self.paths.remove(dist.location)
            self.dirty = True
        super().remove(dist)
Remove `dist` from the distribution map
product/gradle-plugin/src/main/python/setuptools/command/easy_install.py