-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (52 loc) · 1.5 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This Makefile is just a cheatsheet to remind me of some commonly used
# commands. I'm generally executing these on OSX with up-to-date gnu binaries
# on the PATH, or on Ubuntu, or on WindowsXP/7 with Cygwin binaries foremost on
# the PATH.
SHELL=/bin/bash
# Development
test:
python -m unittest discover
.PHONY: test
pylint:
pylint *.py
.PHONY: pylint
tags:
ctags -R --languages=python .
.PHONY: tags
deps:
# on Ubuntu 14.04
# For Rabbyt, install OpenGL header files GL/gl.h & GL/glu.h
sudo apt-get install mesa-common-dev freeglut3-dev python-dev
. ~/.bashrc.virtualenvwrapper ; \
rmvirtualenv zerkcom ; \
mkvirtualenv -p `which python2.7` zerkcom ; \
which pip ; \
which python ; \
virtualenvwrapper_verify_active_environment ; \
# To find GL/gl.h & GL/glu.h
# This step works if zerkcom virtualenv is active when running 'make deps'
# but fails otherwise with
CFLAGS='-I/usr/include' \
pip install \
-r requirements.txt \
--find-links pypackages/ \
--allow-external Pyrex \
--allow-unverified Pyrex
clean:
rm -rf build dist MANIFEST tags
find . -name '*.py[oc]' -exec rm {} \;
.PHONY: clean
# Packaging
develop:
# create executable entry points in our python or virtualenv's bin dir
python setup.py develop
.PHONY: develop
sdist: clean
python setup.py sdist --formats=zip,gztar
.PHONY: sdist
register: clean
python setup.py sdist --formats=zip,gztar register
.PHONY: register
upload: clean
python setup.py sdist --formats=zip,gztar register upload
.PHONY: upload