Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #622 from mozilla-services/bug/548
Browse files Browse the repository at this point in the history
bug: update Makefile to use correct requirements
  • Loading branch information
bbangert authored Aug 23, 2016
2 parents 4b4e24c + ec6418b commit 403a278
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ APPNAME = autopush
DEPS =
HERE = $(shell pwd)
PTYPE=pypy
BIN = $(HERE)/pypy/bin
ifneq ($(PTYPE), python)
REQS=$(PTYPE)-requirements.txt
else
REQS=requirements.txt
endif
BIN = $(HERE)/$(PTYPE)/bin
VIRTUALENV = virtualenv
TESTS = $(APPNAME)/tests
PYTHON = $(BIN)/$(PTYPE)
Expand Down Expand Up @@ -37,17 +42,20 @@ $(BIN)/flake8: $(BIN)/pip
$(INSTALL) flake8

$(BIN)/paster: lib $(BIN)/pip
$(INSTALL) -r requirements.txt
$(INSTALL) -r $(REQS)
$(PYTHON) setup.py develop

$(PYTHON):
$(VIRTUALENV) $(PTYPE) -p $(PTYPE)

clean-env:
rm -rf *.egg-info
rm -rf $(BUILD_DIRS)

clean: clean-env

build: $(BIN)/pip
$(INSTALL) -r requirements.txt
$(INSTALL) -r $(REQS)
$(PYTHON) setup.py develop

test: $(BIN)/tox $(HERE)/ddb
Expand Down

0 comments on commit 403a278

Please sign in to comment.