Closed lunochod closed 6 months ago
Hmm the correct solution would be to add .PHONY: venv
before venv:
in the Makefile
:
.PHONY: venv
venv:
python3 -m venv $(VIRTUALENV_DIR); \
source ./$(VIRTUALENV_DIR)/bin/activate; \
pip install -r requirements.txt; \
pip install -r requirements-dev.txt;
Updated the PR to use .PHONY
Fix ERROR: venv is up-to-date
If the user has an existing
venv
folder in the main project directory,make build
will fail sincemake venv
will exit with the message that the build target venv is up-to-date. This situation occurs when the popular PyCharm IDE is used with the project that creates a venv folder for its environment. Renaming the build target avoids this collision.Fix ERROR: DisplayCAL is already installed
After
make build
pip will already list DisplayCAL as an installed packaged which can be verified withpip list | grep DisplayCAL
and therefor not install DisplayCAL despite the fact that.venv/bin/displaycal
doesn't exist. Adding --force-reinstall will avoid this error.