Skip to content

Instantly share code, notes, and snippets.

@openfly
Created June 21, 2016 20:02
Show Gist options
  • Save openfly/00186bbeb54bef31baa81c798e73db77 to your computer and use it in GitHub Desktop.
Save openfly/00186bbeb54bef31baa81c798e73db77 to your computer and use it in GitHub Desktop.
The illest of python superbuild processes. Also.. BUWAHAHA make all the eggs!
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PYTHON='$(ROOT_DIR)/venv/bin/python'
SUBDIRS = pod-diagnostics pod-dir-passwd
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || virtualenv venv
venv/bin/pip install -Ur requirements.txt
touch venv/bin/activate
$(SUBDIRS): venv
cd $(@); $(PYTHON) setup.py install --verbose
.PHONY: clean
clean:
rm -rf */build; \
rm -rf */dist; \
rm -rf */*.egg-info
@chrisfabri
Copy link

this is slick - we should use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment