Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefd1e17

Browse files
authored
Usevenv.create() to create virtual environments (#289)
1 parent9bcde43 commitefd1e17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎build_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
importshutil
5757
importsubprocess
5858
importsys
59+
importvenv
5960
frombisectimportbisect_leftasbisect
6061
fromcontextlibimportcontextmanager,suppress
6162
frompathlibimportPath
@@ -690,7 +691,7 @@ def build_venv(self) -> None:
690691
requirements.append("matplotlib>=3")
691692

692693
venv_path=self.build_root/ ("venv-"+self.version.name)
693-
run([sys.executable,"-m","venv",venv_path])
694+
venv.create(venv_path,symlinks=os.name!="nt",with_pip=True)
694695
run(
695696
[venv_path/"bin"/"python","-m","pip","install","--upgrade"]
696697
+ ["--upgrade-strategy=eager"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp