Commits

MattMaker committed 4a967b7

also implement optional(y/n!) uninstallation of extras when pip knows it (probably) installed them

Comments (0)

Files changed (1)

                     paths_to_remove.add(path)
                     paths_to_remove.add(path + '.py')
                     paths_to_remove.add(path + '.pyc')
+            if dist.has_metadata('requires.txt'):
+                for name in self.requirements(self.extras):
+                    logger.debug("also uninstalling extra requirement %s" % name)
+                    InstallRequirement.from_line(name).uninstall()
 
         elif dist.location.endswith(easy_install_egg):
             # package installed by easy_install