Spaces:
Sleeping
Sleeping
PYTHON_VERSION = python3.10 | |
VIRTUALENV := .venv | |
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 | |
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 | |