From c511f550aa006d6a2c75b9363d49fcdc15dabe0e Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Mon, 14 Mar 2016 13:23:01 -0600 Subject: [PATCH] fix(Makefile): print error if pip is missing Also, prompt the user to run pip install during bootstrap. Closes #362. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 6ec99023a..892c80d5e 100644 --- a/Makefile +++ b/Makefile @@ -72,10 +72,14 @@ HAS_GLIDE := $(shell command -v glide;) HAS_GOLINT := $(shell command -v golint;) HAS_GOVET := $(shell command -v go tool vet;) HAS_GOX := $(shell command -v gox;) +HAS_PIP := $(shell command -v pip;) .PHONY: bootstrap bootstrap: @echo Installing deps +ifndef HAS_PIP + $(error Please install the latest version of Python pip) +endif ifndef HAS_GLIDE go get github.com/Masterminds/glide endif @@ -89,3 +93,4 @@ ifndef HAS_GOX go get -u github.com/mitchellh/gox endif glide install + @echo Please run pip install -r expansion/requirements.txt. You might need sudo.