update_manager: update pip before installing new python deps
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
aa9641024a
commit
d7c367f095
|
@ -814,6 +814,10 @@ class GitUpdater(BaseUpdater):
|
||||||
pip = os.path.join(bin_dir, "pip")
|
pip = os.path.join(bin_dir, "pip")
|
||||||
self._notify_status("Updating python packages...")
|
self._notify_status("Updating python packages...")
|
||||||
try:
|
try:
|
||||||
|
# First attempt to update pip
|
||||||
|
await self.cmd_helper.run_cmd(
|
||||||
|
f"{pip} install -U pip", timeout=1200., notify=True,
|
||||||
|
retries=3)
|
||||||
await self.cmd_helper.run_cmd(
|
await self.cmd_helper.run_cmd(
|
||||||
f"{pip} install -r {reqs}", timeout=1200., notify=True,
|
f"{pip} install -r {reqs}", timeout=1200., notify=True,
|
||||||
retries=3)
|
retries=3)
|
||||||
|
|
Loading…
Reference in New Issue