Hack around OSX python build issues

pull/28/head
Ryan Kelly 11 years ago
parent 988a23c051
commit 98f5d04522

@ -3,6 +3,11 @@ VIRTUALENV = virtualenv --python=$(SYSTEMPYTHON)
ENV = ./local ENV = ./local
TOOLS := $(addprefix $(ENV)/bin/,flake8 nosetests) TOOLS := $(addprefix $(ENV)/bin/,flake8 nosetests)
# Hackety-hack around OSX system python bustage.
# The need for this should go away with a future osx/xcode update.
ARCHFLAGS = -Wno-error=unused-command-line-argument-hard-error-in-future
INSTALL = ARCHFLAGS=$(ARCHFLAGS) $(ENV)/bin/pip install
.PHONY: all .PHONY: all
all: build all: build
@ -10,7 +15,7 @@ all: build
build: | $(ENV) build: | $(ENV)
$(ENV): requirements.txt $(ENV): requirements.txt
$(VIRTUALENV) --no-site-packages $(ENV) $(VIRTUALENV) --no-site-packages $(ENV)
$(ENV)/bin/pip install -r requirements.txt $(INSTALL) -r requirements.txt
$(ENV)/bin/python ./setup.py develop $(ENV)/bin/python ./setup.py develop
touch $(ENV) touch $(ENV)
@ -29,7 +34,7 @@ test: | $(TOOLS)
kill $$SERVER_PID kill $$SERVER_PID
$(TOOLS): | $(ENV) $(TOOLS): | $(ENV)
$(ENV)/bin/pip install nose flake8 $(INSTALL) nose flake8
.PHONY: serve .PHONY: serve
serve: | $(ENV) serve: | $(ENV)

Loading…
Cancel
Save