fix(makefile): Avoid --user flag usage if previous PIP run has failed - which makes no difference for virtualenv anyway

This commit is contained in:
Arkadiy Korotaev 2020-07-20 16:20:03 +02:00
parent c5226e983e
commit a4eb80c141
No known key found for this signature in database
GPG Key ID: 4BD092DD84540FAB

View File

@ -78,8 +78,9 @@ readme:
#: demo - Setup demo project using Python3.
.PHONY: demo
demo:
$(PIP) install -e . --user
$(PIP) install -e demo --user
# running it with and without --user flag because it started to be problematic for some setups
$(PIP) install -e . --user || $(PIP) install -e .
$(PIP) install -e demo --user || $(PIP) install -e demo
demodesk migrate --noinput
# Create superuser; user will be prompted to manually set a password
# When you get a prompt, enter a password of your choosing.