forked from gratipay/inside.gratipay.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 863 Bytes
/
Makefile
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
python := "$(shell { command -v python2.7 || command -v python; } 2>/dev/null)"
# Set the relative path to installed binaries under the project virtualenv.
# NOTE: Creating a virtualenv on Windows places binaries in the 'Scripts' directory.
bin_dir := $(shell $(python) -c 'import sys; bin = "Scripts" if sys.platform == "win32" else "bin"; print(bin)')
env_bin := env/$(bin_dir)
venv := "./vendor/virtualenv-1.9.1.py"
env:
$(python) $(venv)\
--unzip-setuptools \
--prompt="[building.gittip.com] " \
--never-download \
--extra-search-dir=./vendor/ \
--distribute \
./env/
./$(env_bin)/pip install -r requirements.txt
clean:
rm -rf env *.egg *.egg-info
find . -name \*.pyc -delete
run: env local.env
./$(env_bin)/honcho -e defaults.env,local.env run ./env/bin/aspen \
--network_address :8536 --www_root=./www/ --project_root=./