未验证 提交 673a7ca0 编写于 作者: F Frost Ming

uninstall editable package by the project name

Fix #277
上级 8e633c6a
Fix a bug that editable packages with `src` directory can't be uninstalled correctly.
......@@ -77,10 +77,7 @@ class Installer: # pragma: no cover
def uninstall(self, dist: Distribution) -> None:
req = parse_requirement(dist.project_name)
if is_dist_editable(dist):
ireq = pip_shims.install_req_from_editable(dist.location)
else:
ireq = pip_shims.install_req_from_line(dist.project_name)
ireq = pip_shims.install_req_from_line(dist.project_name)
ireq.req = req
pathset = ireq.uninstall(auto_confirm=self.auto_confirm)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册