-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 677 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
HERE = $(shell pwd)
VENV = ./venv
BIN = $(VENV)/bin
PYTHON = $(BIN)/python
PIP = $(BIN)/pip
INSTALL = $(PIP) install
.PHONY: all build test clean
all: build test
build: $(VENV)/COMPLETE
$(VENV)/COMPLETE: requirements.txt
mkdir -p build
virtualenv --no-site-packages --python=`which python` --distribute $(VENV)
# virtualenv --no-site-packages --python='/usr/bin/python2.6' --distribute $(VENV)
$(INSTALL) -r requirements.txt
$(PYTHON) setup.py develop
touch $(VENV)/COMPLETE
test:
$(INSTALL) -r test_requirements.txt
tox -r
clean:
rm -rf venv *egg* dist ./docs/_build .tox
find . -name '*.pyc' -delete
find . -name '__pycache__' -type d -exec rm -fr {} \;