forked from AFPy/python-docs-fr
Abort construction of venv if inside a venv.
This commit is contained in:
parent
d4a0d0223d
commit
34f52816f9
9
Makefile
9
Makefile
|
@ -39,10 +39,17 @@ $(SPHINX_CONF):
|
|||
|
||||
.PHONY: upgrade_venv
|
||||
upgrade_venv:
|
||||
ifdef VIRTUAL_ENV
|
||||
$(error "Trying to create a venv while being in a venv. Please deactivate from your venv first.")
|
||||
endif
|
||||
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
|
||||
|
||||
|
||||
$(VENV)/bin/activate: upgrade_venv
|
||||
$(VENV)/bin/activate:
|
||||
ifdef VIRTUAL_ENV
|
||||
$(error "Trying to create a venv while being in a venv. Please deactivate from your venv first.")
|
||||
endif
|
||||
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
|
||||
|
||||
|
||||
.PHONY: progress
|
||||
|
|
Loading…
Reference in New Issue