-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (22 loc) · 919 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
26
27
VIRTUAL_ENV_DIR=vendor/python
BOTO_VIRTUAL_ENV_DIR=vendor/boto
PIP_CMD=PIP_DOWNLOAD_CACHE=vendor/cache $(VIRTUAL_ENV_DIR)/bin/pip install --no-deps -i http://pypi.utils.globuscs.info/simple -r
DEPLOY_PIP_CMD=PIP_DOWNLOAD_CACHE=vendor/cache $(VIRTUAL_ENV_DIR)/bin/pip install --no-deps -r
.PHONY: build
build: $(VIRTUAL_ENV_DIR)/lib/python2.7/site-packages/goauth
$(VIRTUAL_ENV_DIR)/lib/python2.7/site-packages/goauth/: vendor/virtualenv.py
python vendor/virtualenv.py --python python2.7 --no-site-packages $(VIRTUAL_ENV_DIR)
$(PIP_CMD) requirements.txt
vendor/python/bin/python setup.py install
vendor/virtualenv.py:
curl -o vendor/virtualenv.py https://raw.github.com/pypa/virtualenv/master/virtualenv.py
clean:
rm -rf $(VIRTUAL_ENV_DIR)
rm -rf build
rm -rf dist
rm -rf gearbox
rm -rf *.egg
find ./ -name "*.pyc" -delete
test: build
$(PIP_CMD) test-requirements.txt
$(VIRTUAL_ENV_DIR)/bin/nosetests