Skip to content

Use venv.create() to create virtual environments #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import shutil
import subprocess
import sys
import venv
from bisect import bisect_left as bisect
from contextlib import contextmanager, suppress
from pathlib import Path
Expand Down Expand Up @@ -690,7 +691,7 @@
requirements.append("matplotlib>=3")

venv_path = self.build_root / ("venv-" + self.version.name)
run([sys.executable, "-m", "venv", venv_path])
venv.create(venv_path, symlinks=os.name != "nt", with_pip=True)

Check warning on line 694 in build_docs.py

View check run for this annotation

Codecov / codecov/patch

build_docs.py#L694

Added line #L694 was not covered by tests
run(
[venv_path / "bin" / "python", "-m", "pip", "install", "--upgrade"]
+ ["--upgrade-strategy=eager"]
Expand Down