                   if URL_SCHEME(spec):
                       # It's a url, download it to tmpdir and process
                       self.not_editable(spec)
---- 455,720 ----
+--- 456,721 ----
                   (spec.key, self.build_directory)
               )
   

      return prefixes
  
  
--- 1642,1651 ----
                          prefixes.append((('%s/%s/' % (parts[0],pth)), ''))
      finally:
          z.close()

+             return
+ 
+             all_deps = self.get_deps()
+ 
+             for spec in specs:
+                 pkgs = require(spec)
+ 
+                 # If the package found has dependencies, prompt the user if they
+                 # want the dependencies to be uninstalled as well.
+                 if len(pkgs) > 1:
+                     for dep in pkgs[1:]:
+                         if self.check_deps(dep.project_name, spec, all_deps):
+                             self._remove_dist(dep)
+ 
+                 # Finally, check if user-specified package can be safely
+                 # removed.
+                 if self.check_deps(pkgs[0].project_name, spec, all_deps):
