Created
June 21, 2016 20:02
-
-
Save openfly/00186bbeb54bef31baa81c798e73db77 to your computer and use it in GitHub Desktop.
The illest of python superbuild processes. Also.. BUWAHAHA make all the eggs!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▽ | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is slick - we should use this.