annotate makefile @ 1705:115a268f1d74

pixi tag, some version upgrades Ignore-this: 89a7442328af563b0a66a0675abdc3ea
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 29 Apr 2018 21:56:51 +0000
parents b46f6977168b
children e30493d458f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
1 ### setup ###
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
2
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
3 packages:
1696
d9337dfe941a upgrade polymer mods, nginx pkg choice
Drew Perttula <drewp@bigasterisk.com>
parents: 1695
diff changeset
4 sudo aptitude install coffeescript normalize-audio audacity python-pygame libffi-dev tix libzmq3-dev python-dev libssl-dev python-opencv python-cairo npm git python-virtualenv nginx-full python-tk
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
5
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
6 gst_packages:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
7 sudo aptitude install python-gi gir1.2-gst-plugins-base-1.0 libgirepository-1.0-1 gir1.2-gstreamer-1.0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-pulseaudio python-gst-1.0 python-pygoocanvas gir1.2-goocanvas-2.0
1288
5e76c8fd8a03 rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents: 1240
diff changeset
8
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
9 PYTHON=/usr/bin/pypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
10 PYTHON=/usr/bin/python
1362
168262618f2d new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents: 1327
diff changeset
11
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
12 create_virtualenv:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
13 mkdir -p env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
14 virtualenv -p $(PYTHON) env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
15 env/bin/pip install -U pip
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
16 ln -sf ../env/bin/python bin/python
1363
233b81d9bd9d simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents: 1362
diff changeset
17
1233
15a13eba6fc3 effect_node_setup
Drew Perttula <drewp@bigasterisk.com>
parents: 1232
diff changeset
18
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
19 install_python_deps: link_to_sys_packages
1234
fb830770c703 silly txosc can't setup without twisted
Drew Perttula <drewp@bigasterisk.com>
parents: 1233
diff changeset
20 env/bin/pip install twisted
1299
02415a3cebb2 requirements.txt filename
Drew Perttula <drewp@bigasterisk.com>
parents: 1291
diff changeset
21 env/bin/pip install -U -r requirements.txt
825
a8942364e4ee switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 820
diff changeset
22
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
23 DP=/usr/lib/python2.7/dist-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
24 SP=env/lib/python2.7/site-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
25
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
26 link_to_sys_packages:
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
27 # http://stackoverflow.com/questions/249283/virtualenv-on-ubuntu-with-no-site-packages
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
28 ln -sf $(DP)/glib $(SP)/
907
cca75951554a port ascoltami to Gst 1.0, work around the missing message signals
Drew Perttula <drewp@bigasterisk.com>
parents: 869
diff changeset
29 ln -sf $(DP)/gi $(SP)/
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
30 ln -sf $(DP)/gobject $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
31 ln -sf $(DP)/cairo $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
32 ln -sf $(DP)/gtk-2.0 $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
33 ln -sf $(DP)/pygtk.py $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
34 ln -sf $(DP)/pygtk.pth $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
35 ln -sf $(DP)/pygst.pth $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
36 ln -sf $(DP)/pygst.py $(SP)/
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
37 ln -sf $(DP)/gst-0.10 $(SP)/
869
83dfc2e87e62 add link to system goocanvas, for curvecalc
Drew Perttula <drewp@bigasterisk.com>
parents: 866
diff changeset
38 ln -sf $(DP)/goocanvasmodule.so $(SP)/
1411
0b2edd4de97a setup changes for laptop
drewp@bigasterisk.com
parents: 1377
diff changeset
39 ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/
0b2edd4de97a setup changes for laptop
drewp@bigasterisk.com
parents: 1377
diff changeset
40 ln -sf $(DP)/cv.py $(SP)/
860
8189f27679a1 gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents: 827
diff changeset
41
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
42 binexec:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
43 chmod a+x bin/*
1087
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
44
1572
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
45
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
46 node_modules/bower/bin/bower:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
47 npm install
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
48
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
49 bin/node:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
50 ln -sf `which nodejs` bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
51
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
52 bower: node_modules/bower/bin/bower bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
53 cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
1703
b46f6977168b start pixijs on timeline
Drew Perttula <drewp@bigasterisk.com>
parents: 1696
diff changeset
54 # pixi is fetched with npm
b46f6977168b start pixijs on timeline
Drew Perttula <drewp@bigasterisk.com>
parents: 1696
diff changeset
55 ln -s ../../../node_modules/pixi.js light9/web/lib/
b46f6977168b start pixijs on timeline
Drew Perttula <drewp@bigasterisk.com>
parents: 1696
diff changeset
56
1572
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
57 cd light9/web/lib/N3.js; npm install; PATH=../../../../bin:$(PATH) npm run browser
1703
b46f6977168b start pixijs on timeline
Drew Perttula <drewp@bigasterisk.com>
parents: 1696
diff changeset
58
1572
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
59 cd light9/web/lib/d3; PATH=../../../../bin:$(PATH) npm install
1291
a36928f7cc35 upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents: 1288
diff changeset
60
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
61 bin/ascoltami2: gst_packages link_to_sys_packages
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
62
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
63 effect_node_setup: create_virtualenv packages binexec install_python_deps
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
64
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
65 tkdnd_build:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
66 # get tkdnd r95 with subversion
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
67 # then apply tkdnd-patch-on-r95 to that
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
68 cd tkdnd/trunk
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
69 ./configure
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
70 make
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
71
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
72 env-mypy/bin/mypy:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
73 mkdir -p env-mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
74 virtualenv -p /usr/bin/python3 env-mypy/
1705
115a268f1d74 pixi tag, some version upgrades
Drew Perttula <drewp@bigasterisk.com>
parents: 1703
diff changeset
75 env-mypy/bin/pip install mypy==0.590 lxml==4.2.1
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
76
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
77 ### build ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
78
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
79 coffee:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
80 zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
81
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
82 mypy-collector: env-mypy/bin/mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
83 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
84
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
85 mypy-paint: env-mypy/bin/mypy
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
86 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
87
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
88 ### show ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
89
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
90 darcs_show_checkpoint:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
91 darcs add --quiet --recursive ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
92 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
93
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
94 ### pi setup ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
95
1546
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
96 raspberry_pi_packages:
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
97 sudo apt-get install python-picamera python-dev python-twisted python-virtualenv
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
98
1087
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
99 raspberry_pi_virtualenv:
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
100 mkdir -p env_pi
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
101 virtualenv --system-site-packages env_pi
1546
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
102 env_pi/bin/pip install cyclone 'coloredlogs==6.0'
1184
499ef7c133eb make rule for checkpoints
drewp@bigasterisk.com
parents: 1112
diff changeset
103
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
104 ### arduino build ###
1232
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
105
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
106 /usr/share/arduino/Arduino.mk:
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
107 sudo aptitude install arduino-mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
108
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
109 arduino_upload: /usr/share/arduino/Arduino.mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
110 cd rgbled
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
111 make upload
1233
15a13eba6fc3 effect_node_setup
Drew Perttula <drewp@bigasterisk.com>
parents: 1232
diff changeset
112
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
113 ### testing ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
114
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
115 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect"
1327
d6396679c121 move to adjustable.coffee and also simplify the getTarget code
Drew Perttula <drewp@bigasterisk.com>
parents: 1318
diff changeset
116
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
117 tests:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
118 eval env/bin/nosetests -x $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
119
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
120 tests_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
121 eval env/bin/nosetests --with-watcher $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
122
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
123
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
124 tests_coverage:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
125 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
126
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
127 test_js_init:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
128 npm install
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
129
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
130 test_js:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
131 coffee -c light9/web/*.coffee
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
132 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
1563
1b42120d97f5 mypy upgrade
Drew Perttula <drewp@bigasterisk.com>
parents: 1546
diff changeset
133
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
134 test_js_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
135 # have coffee continuously running
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
136 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors