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

escalate the activate() method

Close #204
上级 744fbaf6
Fix a bug that distributions are not removed in parallel mode.
......@@ -83,7 +83,6 @@ class Installer: # pragma: no cover
ireq = pip_shims.install_req_from_line(dist.project_name)
ireq.req = req
with self.environment.activate():
pathset = ireq.uninstall(auto_confirm=self.auto_confirm)
if pathset:
pathset.commit()
pathset = ireq.uninstall(auto_confirm=self.auto_confirm)
if pathset:
pathset.commit()
......@@ -285,7 +285,7 @@ class Synchronizer:
)
)
with stream.logging("install"):
with stream.logging("install"), self.environment.activate():
with stream.indent(" "):
for job in sequential_jobs:
kind, key = job
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册