Skip to content

Commit da1589e

Browse files
committed
Upgrade pip via upgrade_deps=True
1 parent 8e93c0e commit da1589e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

build_docs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,14 @@ def build_venv(self) -> None:
821821
# build, which may recreate it mid-build.
822822
venv_name += f"-{self.select_output}"
823823
venv_path = self.build_root / venv_name
824-
venv.create(venv_path, symlinks=os.name != "nt", with_pip=True, clear=True)
824+
venv.create(
825+
venv_path,
826+
symlinks=os.name != "nt",
827+
with_pip=True,
828+
clear=True,
829+
upgrade_deps=True,
830+
)
825831
python = venv_path / "bin" / "python"
826-
run((python, "-m", "pip", "install", "--upgrade", "pip"))
827832

828833
if (self.checkout / "Doc" / "pylock.toml").exists():
829834
requirements.remove("-rrequirements.txt")

0 commit comments

Comments
 (0)