mirror of
https://github.com/zeldaret/oot
synced 2026-08-21 22:40:55 -04:00
Delete venv if venv creation fails (#1622)
* Delete venv if venv creation fails * Comment on shell magic
This commit is contained in:
@@ -291,7 +291,9 @@ distclean: clean assetclean
|
||||
$(MAKE) -C tools distclean
|
||||
|
||||
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 -r requirements.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user