Mercurial > code > home > repos > light9
annotate makefile @ 1543:c8cffe82b537
collector gui updates
Ignore-this: d8ab8247884e674a2332684297920c6a
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 19 May 2017 07:33:11 +0000 |
parents | 69088fe2865e |
children | eeadad4a998e |
rev | line source |
---|---|
1543
c8cffe82b537
collector gui updates
Drew Perttula <drewp@bigasterisk.com>
parents:
1522
diff
changeset
|
1 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect" |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
2 |
820
f7ae0faa0a44
makefile and nosetests path fix. new contextsForStatement
drewp@bigasterisk.com
parents:
diff
changeset
|
3 tests: |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
4 eval env/bin/nosetests -x $(NOSEARGS) |
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
5 |
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
6 tests_watch: |
1103
771f50f19b4b
single-line effect code now evals by changing <uri> into a suitable python object
Drew Perttula <drewp@bigasterisk.com>
parents:
1087
diff
changeset
|
7 eval env/bin/nosetests --with-watcher $(NOSEARGS) |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
8 |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
9 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
10 tests_coverage: |
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
11 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) |
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
12 |
1362
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
13 test_js_init: |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
14 npm install |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
15 |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
16 test_js: |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
17 coffee -c light9/web/*.coffee |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
18 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee |
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
19 |
1363
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
20 test_js_watch: |
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
21 # have coffee continuously running |
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
22 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors |
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
23 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
24 # needed packages: python-gtk2 python-imaging |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
25 |
1233 | 26 binexec: |
27 chmod a+x bin/* | |
28 | |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
29 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
|
30 env/bin/pip install twisted |
1299
02415a3cebb2
requirements.txt filename
Drew Perttula <drewp@bigasterisk.com>
parents:
1291
diff
changeset
|
31 env/bin/pip install -U -r requirements.txt |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
32 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
33 DP=/usr/lib/python2.7/dist-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
34 SP=env/lib/python2.7/site-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
35 |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
36 link_to_sys_packages: |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
37 # 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
|
38 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
|
39 ln -sf $(DP)/gi $(SP)/ |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
40 ln -sf $(DP)/gobject $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
41 ln -sf $(DP)/cairo $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
42 ln -sf $(DP)/gtk-2.0 $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
43 ln -sf $(DP)/pygtk.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
44 ln -sf $(DP)/pygtk.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
45 ln -sf $(DP)/pygst.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
46 ln -sf $(DP)/pygst.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
47 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
|
48 ln -sf $(DP)/goocanvasmodule.so $(SP)/ |
1411 | 49 ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/ |
50 ln -sf $(DP)/cv.py $(SP)/ | |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
51 |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
52 PYTHON=/usr/bin/pypy |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
53 PYTHON=/usr/bin/python |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
54 |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
55 create_virtualenv: |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
56 mkdir -p env |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
57 virtualenv -p $(PYTHON) env |
1209
b7c752e49355
upgrade many modules
Drew Perttula <drewp@bigasterisk.com>
parents:
1184
diff
changeset
|
58 env/bin/pip install -U pip |
863 | 59 ln -sf ../env/bin/python bin/python |
862
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
60 |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
61 tkdnd_build: |
866
43ddee394d28
more tkdnd install instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
863
diff
changeset
|
62 # get tkdnd r95 with subversion |
43ddee394d28
more tkdnd install instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
863
diff
changeset
|
63 # then apply tkdnd-patch-on-r95 to that |
862
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
64 cd tkdnd/trunk |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
65 ./configure |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
66 make |
912 | 67 |
68 bin/ascoltami2: gst_packages link_to_sys_packages | |
69 | |
70 gst_packages: | |
1508
df1237c39672
upgrade lots of pydeps; fix package install instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
1506
diff
changeset
|
71 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-gst0.10 python-gst-1.0 python-pygoocanvas gir1.2-goocanvas-2.0 |
919
33a5a98e9bf1
start subserver webapp with websockets, cyclone, jade, coffee
drewp@bigasterisk.com
parents:
913
diff
changeset
|
72 |
33a5a98e9bf1
start subserver webapp with websockets, cyclone, jade, coffee
drewp@bigasterisk.com
parents:
913
diff
changeset
|
73 packages: |
1522
69088fe2865e
more progress on paint
Drew Perttula <drewp@bigasterisk.com>
parents:
1519
diff
changeset
|
74 sudo aptitude install coffeescript normalize-audio audacity python-pygame libffi-dev tix libzmq3-dev python-dev libssl-dev python-opencv python-cairo |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
75 |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
76 bower: |
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
77 cd light9/web/lib; bower install |
1318 | 78 cd light9/web/lib/N3.js; npm install; npm run browser |
79 cd light9/web/lib/d3; npm install | |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
80 |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
81 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
82 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
|
83 virtualenv --system-site-packages env_pi |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
84 |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
85 raspberry_pi_packages: |
1370
b246e25b0f25
fix picamserve config
Drew Perttula <drewp@bigasterisk.com>
parents:
1367
diff
changeset
|
86 sudo apt-get install python-picamera python-dev python-twisted python-virtualenv |
b246e25b0f25
fix picamserve config
Drew Perttula <drewp@bigasterisk.com>
parents:
1367
diff
changeset
|
87 env_pi/bin/pip install cyclone 'coloredlogs==1.0.1' |
1184 | 88 |
89 darcs_show_checkpoint: | |
90 darcs add --quiet --recursive ${LIGHT9_SHOW} | |
91 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW} | |
1232
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
92 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
93 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
94 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
95 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
96 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
97 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
98 make upload |
1233 | 99 |
100 effect_node_setup: create_virtualenv packages binexec install_python_deps | |
1327
d6396679c121
move to adjustable.coffee and also simplify the getTarget code
Drew Perttula <drewp@bigasterisk.com>
parents:
1318
diff
changeset
|
101 |
d6396679c121
move to adjustable.coffee and also simplify the getTarget code
Drew Perttula <drewp@bigasterisk.com>
parents:
1318
diff
changeset
|
102 coffee: |
1519 | 103 zsh -c 'coffee -cw light9/web/{.,live,timeline,paint}/*.coffee' |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
104 |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
105 env-mypy/bin/mypy: |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
106 mkdir -p env-mypy |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
107 virtualenv -p /usr/bin/python3 env-mypy/ |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
108 env-mypy/bin/pip install mypy==0.501 lxml==3.7.3 |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
109 |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
110 mypy-collector: env-mypy/bin/mypy |
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
111 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py |