Mercurial > code > home > repos > light9
annotate makefile @ 1968:6e1b06199cff
add setup note about 'invoke'
Ignore-this: fe4134aa644334a8acaa991ddf71a453
author | drewp@bigasterisk.com |
---|---|
date | Sat, 08 Jun 2019 03:50:57 +0000 |
parents | 9dd331caa23b |
children | dc742d72f8cb |
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: |
1953
9dd331caa23b
cleanups to help with first build success
drewp@bigasterisk.com
parents:
1951
diff
changeset
|
4 sudo aptitude install coffeescript normalize-audio audacity python3-pygame libffi-dev tix libzmq3-dev python3-dev libssl-dev python3-opencv python3-cairo npm git virtualenv python3-virtualenv nginx-full python3-tk zlib1g-dev libjpeg8-dev curl |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
5 |
1968 | 6 # also pip3 install -U invoke (don't use ubuntu's version) |
7 | |
1695 | 8 gst_packages: |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
9 sudo aptitude install python3-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 python3-gst-1.0 gir1.2-goocanvas-2.0 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
10 |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
11 PYTHON=/usr/bin/python3 |
1362
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
12 |
1695 | 13 create_virtualenv: |
14 mkdir -p env | |
15 virtualenv -p $(PYTHON) env | |
16 env/bin/pip install -U pip | |
17 ln -sf ../env/bin/python bin/python | |
1363
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
18 |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
19 install_python_deps: |
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
20 env/bin/pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U -r requirements.txt |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
21 |
1695 | 22 binexec: |
23 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
|
24 |
1572
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
25 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
26 node_modules/bower/bin/bower: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
27 npm install |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
28 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
29 bin/node: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
30 ln -sf `which nodejs` bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
31 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
32 bower: node_modules/bower/bin/bower bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
33 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
|
34 |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
35 npm_install: |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1705
diff
changeset
|
36 npm install |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
37 |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
38 node_modules/n3/n3-browser.js: |
1901
7fe81130b735
move web logging to https://github.com/visionmedia/debug/ so it can have channels that can be turned off
Drew Perttula <drewp@bigasterisk.com>
parents:
1864
diff
changeset
|
39 (cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js) |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
40 |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
41 light9/web/lib/debug/debug-build.js: |
1901
7fe81130b735
move web logging to https://github.com/visionmedia/debug/ so it can have channels that can be turned off
Drew Perttula <drewp@bigasterisk.com>
parents:
1864
diff
changeset
|
42 node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
43 |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
44 light9/web/lib/debug/debug-build-es6.js: |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
45 node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js --standalone debug |
1951
9f0f2b39ad95
vidref web is working
Drew Perttula <drewp@bigasterisk.com>
parents:
1946
diff
changeset
|
46 echo "\nexport default window.debug;" >> light9/web/lib/debug/debug-build-es6.js |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
47 |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
48 lit_fix: |
1935
5acdf209394d
start live stats displayer on home page
Drew Perttula <drewp@bigasterisk.com>
parents:
1901
diff
changeset
|
49 perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
50 |
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
51 round_fix: |
1935
5acdf209394d
start live stats displayer on home page
Drew Perttula <drewp@bigasterisk.com>
parents:
1901
diff
changeset
|
52 perl -pi -e 's/module.exports = rounding/export { rounding }/' node_modules/significant-rounding/index.js |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
53 |
1951
9f0f2b39ad95
vidref web is working
Drew Perttula <drewp@bigasterisk.com>
parents:
1946
diff
changeset
|
54 light9/web/lib/underscore/underscore-min-es6.js: |
9f0f2b39ad95
vidref web is working
Drew Perttula <drewp@bigasterisk.com>
parents:
1946
diff
changeset
|
55 cp light9/web/lib/underscore/underscore-min.js light9/web/lib/underscore/underscore-min-es6.js |
9f0f2b39ad95
vidref web is working
Drew Perttula <drewp@bigasterisk.com>
parents:
1946
diff
changeset
|
56 perl -pi -e 's/call\(this\);/call(window); export default window._;/' light9/web/lib/underscore/underscore-min-es6.js |
1945 | 57 |
1951
9f0f2b39ad95
vidref web is working
Drew Perttula <drewp@bigasterisk.com>
parents:
1946
diff
changeset
|
58 npm: npm_install node_modules/n3/n3-browser.js light9/web/lib/debug/debug-build.js light9/web/lib/debug/debug-build-es6.js lit_fix round_fix light9/web/lib/underscore/underscore-min-es6.js |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
59 |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
60 |
1695 | 61 bin/ascoltami2: gst_packages link_to_sys_packages |
62 | |
63 effect_node_setup: create_virtualenv packages binexec install_python_deps | |
64 | |
65 tkdnd_build: | |
66 # get tkdnd r95 with subversion | |
67 # then apply tkdnd-patch-on-r95 to that | |
68 cd tkdnd/trunk | |
69 ./configure | |
70 make | |
71 | |
72 ### build ### | |
73 | |
74 coffee: | |
1713
bd0c83b063df
bower, polymer, coffee updates
Drew Perttula <drewp@bigasterisk.com>
parents:
1710
diff
changeset
|
75 zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee' |
1695 | 76 |
1864 | 77 mypy: |
78 inv mypy | |
1695 | 79 |
1857 | 80 reformat: |
1864 | 81 inv reformat |
1857 | 82 |
1695 | 83 ### show ### |
84 | |
85 darcs_show_checkpoint: | |
86 darcs add --quiet --recursive ${LIGHT9_SHOW} | |
87 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW} | |
88 | |
89 ### pi setup ### | |
90 | |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
91 raspberry_pi_packages: |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
92 sudo apt-get install python3-picamera python3-dev python3-twisted python3-virtualenv |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
93 |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
94 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
95 mkdir -p env_pi |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
96 virtualenv -p /usr/bin/python3 --system-site-packages env_pi |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
97 env_pi/bin/pip install cyclone 'coloredlogs==6.0' |
1184 | 98 |
1695 | 99 ### arduino build ### |
1232
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
100 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
101 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
102 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
103 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
104 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
105 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
106 make upload |
1233 | 107 |
1695 | 108 ### testing ### |
109 | |
110 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
|
111 |
1695 | 112 tests: |
113 eval env/bin/nosetests -x $(NOSEARGS) | |
114 | |
115 tests_watch: | |
116 eval env/bin/nosetests --with-watcher $(NOSEARGS) | |
117 | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
118 |
1695 | 119 tests_coverage: |
120 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) | |
121 | |
122 test_js_init: | |
123 npm install | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
124 |
1695 | 125 test_js: |
1713
bd0c83b063df
bower, polymer, coffee updates
Drew Perttula <drewp@bigasterisk.com>
parents:
1710
diff
changeset
|
126 node_modules/coffeescript/bin/coffee -c light9/web/*.coffee |
1695 | 127 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee |
1563 | 128 |
1695 | 129 test_js_watch: |
130 # have coffee continuously running | |
131 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors | |
1772 | 132 |
133 profile_seq: | |
134 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git | |
135 sudo lib/pyflame/src/pyflame -s 10 -p `pgrep -f effectsequencer` | perl -lpe 's,/home/drewp/projects-local/light9/,,g; s,env/local/lib/python2.7/site-packages/,,g;' | lib/FlameGraph/flamegraph.pl --width 2500 > /tmp/fl.svg |