Mercurial > code > home > repos > light9
annotate makefile @ 1695:03125dac50a2
reorder makefile
Ignore-this: ea04b284790a85e8674b3c5b6952f736
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 26 Apr 2018 06:37:21 +0000 |
parents | 0f1b6f48ae1e |
children | d9337dfe941a |
rev | line source |
---|---|
1695 | 1 ### setup ### |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
2 |
1695 | 3 packages: |
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 python-tk | |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
5 |
1695 | 6 gst_packages: |
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 | 9 PYTHON=/usr/bin/pypy |
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 | 12 create_virtualenv: |
13 mkdir -p env | |
14 virtualenv -p $(PYTHON) env | |
15 env/bin/pip install -U pip | |
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 | 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 | 39 ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/ |
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 | 42 binexec: |
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 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
54 cd light9/web/lib/N3.js; npm install; PATH=../../../../bin:$(PATH) npm run browser |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
55 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
|
56 |
1695 | 57 bin/ascoltami2: gst_packages link_to_sys_packages |
58 | |
59 effect_node_setup: create_virtualenv packages binexec install_python_deps | |
60 | |
61 tkdnd_build: | |
62 # get tkdnd r95 with subversion | |
63 # then apply tkdnd-patch-on-r95 to that | |
64 cd tkdnd/trunk | |
65 ./configure | |
66 make | |
67 | |
68 env-mypy/bin/mypy: | |
69 mkdir -p env-mypy | |
70 virtualenv -p /usr/bin/python3 env-mypy/ | |
71 env-mypy/bin/pip install mypy==0.510 lxml==3.7.3 | |
72 | |
73 ### build ### | |
74 | |
75 coffee: | |
76 zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee' | |
77 | |
78 mypy-collector: env-mypy/bin/mypy | |
79 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py | |
80 | |
81 mypy-paint: env-mypy/bin/mypy | |
82 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py | |
83 | |
84 ### show ### | |
85 | |
86 darcs_show_checkpoint: | |
87 darcs add --quiet --recursive ${LIGHT9_SHOW} | |
88 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW} | |
89 | |
90 ### pi setup ### | |
91 | |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
92 raspberry_pi_packages: |
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
93 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
|
94 |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
95 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
96 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
|
97 virtualenv --system-site-packages env_pi |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
98 env_pi/bin/pip install cyclone 'coloredlogs==6.0' |
1184 | 99 |
1695 | 100 ### arduino build ### |
1232
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
101 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
102 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
103 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
104 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
105 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
106 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
107 make upload |
1233 | 108 |
1695 | 109 ### testing ### |
110 | |
111 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
|
112 |
1695 | 113 tests: |
114 eval env/bin/nosetests -x $(NOSEARGS) | |
115 | |
116 tests_watch: | |
117 eval env/bin/nosetests --with-watcher $(NOSEARGS) | |
118 | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
119 |
1695 | 120 tests_coverage: |
121 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) | |
122 | |
123 test_js_init: | |
124 npm install | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
125 |
1695 | 126 test_js: |
127 coffee -c light9/web/*.coffee | |
128 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee | |
1563 | 129 |
1695 | 130 test_js_watch: |
131 # have coffee continuously running | |
132 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors |