Skip to content

Instantly share code, notes, and snippets.

View ericmclachlan's full-sized avatar

Eric McLachlan ericmclachlan

View GitHub Profile
@shazow
shazow / gist:3928595
Last active November 18, 2022 14:24
Makefile which handles Python requirements.txt and *.egg-info (with optional virtualenv checking).
REQUIREMENTS_FILE=requirements.txt
REQUIREMENTS_OUT=requirements.txt.log
SETUP_OUT=*.egg-info
all: setup requirements
requirements: $(REQUIREMENTS_OUT)
$(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE)
pip install -r $(REQUIREMENTS_FILE) | tee $(REQUIREMENTS_OUT)