mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-28 19:25:27 +00:00
Delete venv if venv creation fails (#1622)
* Delete venv if venv creation fails * Comment on shell magic
This commit is contained in:
parent
5dd19e4862
commit
e9a571054c
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -291,7 +291,9 @@ distclean: clean assetclean
|
||||||
$(MAKE) -C tools distclean
|
$(MAKE) -C tools distclean
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
test -d $(VENV) || python3 -m venv $(VENV)
|
# Create the virtual environment if it doesn't exist.
|
||||||
|
# Delete the virtual environment directory if creation fails.
|
||||||
|
test -d $(VENV) || python3 -m venv $(VENV) || { rm -rf $(VENV); false; }
|
||||||
$(PYTHON) -m pip install -U pip
|
$(PYTHON) -m pip install -U pip
|
||||||
$(PYTHON) -m pip install -U -r requirements.txt
|
$(PYTHON) -m pip install -U -r requirements.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue