SearchMesh / Makefile
mattupson's picture
chg: Update dependencies
36cb989 unverified
raw
history blame contribute delete
874 Bytes
PYTHON_VERSION = python3.10
VIRTUALENV := .venv
.PHONY: virtualenv
virtualenv:
@if [ -d $(VIRTUALENV) ]; then rm -rf $(VIRTUALENV); fi
@mkdir -p $(VIRTUALENV)
virtualenv --python $(PYTHON_VERSION) $(VIRTUALENV)
$(VIRTUALENV)/bin/pip3 install --upgrade pip
$(VIRTUALENV)/bin/pip3 install --upgrade -r requirements.txt
.PHONY: update-requirements-txt
update-requirements-txt: VIRTUALENV := /tmp/update-requirements-virtualenv
update-requirements-txt:
@if [ -d $(VIRTUALENV) ]; then rm -rf $(VIRTUALENV); fi
@mkdir -p $(VIRTUALENV)
virtualenv --python $(PYTHON_VERSION) $(VIRTUALENV)
$(VIRTUALENV)/bin/pip3 install --upgrade pip
$(VIRTUALENV)/bin/pip3 install --upgrade -r unpinned_requirements.txt
echo "# Created by 'make update-requirements-txt'. DO NOT EDIT!" > requirements.txt
$(VIRTUALENV)/bin/pip freeze | grep -v pkg_resources==0.0.0 >> requirements.txt