1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +00:00

Delete venv if venv creation fails (#1622)

* Delete venv if venv creation fails

* Comment on shell magic
This commit is contained in:
cadmic 2024-01-27 16:40:29 -08:00 committed by GitHub
parent 5dd19e4862
commit e9a571054c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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