Skip to content
Snippets Groups Projects
Commit ba2f3cab authored by Chandan Singh's avatar Chandan Singh
Browse files

Add Makefile to update requirements files

parent 8ac28088
No related branches found
No related tags found
No related merge requests found
# Makefile for updating BuildStream's requirements files.
#
REQUIREMENTS_IN := $(wildcard *.in)
REQUIREMENTS_TXT := $(REQUIREMENTS_IN:.in=.txt)
PYTHON := python3
VENV := $(PYTHON) -m venv
VENV_PIP = $(VENVDIR)/bin/pip
.PHONY: all
all: $(REQUIREMENTS_TXT)
%.txt: %.in
$(eval VENVDIR := $(shell mktemp -d $$TMPDIR/bst-venv.XXXXXX))
$(VENV) $(VENVDIR)
$(VENV_PIP) install -r $^
$(VENV_PIP) freeze -r $^ > $@
rm -rf $(VENVDIR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment