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

Commit34f5281

Browse files
committed
Abort construction of venv if inside a venv.
1 parentd4a0d02 commit34f5281

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎Makefile‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,17 @@ $(SPHINX_CONF):
3939

4040
.PHONY: upgrade_venv
4141
upgrade_venv:
42+
ifdefVIRTUAL_ENV
43+
$(error "Trying to create a venv while being in a venv. Please deactivate from your venv first.")
44+
endif
4245
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
4346

4447

45-
$(VENV)/bin/activate: upgrade_venv
48+
$(VENV)/bin/activate:
49+
ifdefVIRTUAL_ENV
50+
$(error "Trying to create a venv while being in a venv. Please deactivate from your venv first.")
51+
endif
52+
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
4653

4754

4855
.PHONY: progress

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp