Mercurial > code > home > repos > light9
annotate makefile @ 2038:5154f5a23e85
reworking initial setup; get bin/asco running
author | drewp@bigasterisk.com |
---|---|
date | Mon, 09 May 2022 18:45:04 -0700 |
parents | 00afa5ec081a |
children | d8bac44781d4 |
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: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
4 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
5 audacity \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
6 coffeescript \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
7 curl \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
8 git \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
9 libffi-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
10 libjpeg8-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
11 libssl-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
12 libzmq3-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
13 nginx-core \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
14 nginx-full \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
15 normalize-audio \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
16 npm \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
17 python3-cairo \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
18 python3-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
19 python3-opencv \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
20 python3-pygame \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
21 python3-tk \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
22 tix \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
23 zlib1g-dev |
1968 | 24 |
1695 | 25 gst_packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
26 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
27 gir1.2-goocanvas-2.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
28 gir1.2-gst-plugins-base-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
29 gir1.2-gstreamer-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
30 gstreamer1.0-plugins-good \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
31 gstreamer1.0-pulseaudio \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
32 gstreamer1.0-tools \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
33 libgirepository-1.0-1 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
34 libgirepository1.0-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
35 python3-gi \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
36 python3-gst-1.0 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
37 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
38 pnpm: |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
39 # holding pnpm back because we don't have the latest nodejs: https://pnpm.io/installation#compatibility |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
40 sudo npm install -g pnpm@6.32.12 |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
41 |
1572
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
42 bin/node: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
43 ln -sf `which nodejs` bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
44 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
45 js: pnpm |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
46 pnpm install --reporter append-only |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
47 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
48 py: |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
49 pdm sync |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
50 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
51 refresh: packages gst_packages js py |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
52 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
53 |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
54 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
55 |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
56 |
1945 | 57 |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
58 |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
59 |
1695 | 60 bin/ascoltami2: gst_packages link_to_sys_packages |
61 | |
62 effect_node_setup: create_virtualenv packages binexec install_python_deps | |
63 | |
64 tkdnd_build: | |
65 # get tkdnd r95 with subversion | |
66 # then apply tkdnd-patch-on-r95 to that | |
67 cd tkdnd/trunk | |
68 ./configure | |
69 make | |
70 | |
71 ### build ### | |
72 | |
73 coffee: | |
1713
bd0c83b063df
bower, polymer, coffee updates
Drew Perttula <drewp@bigasterisk.com>
parents:
1710
diff
changeset
|
74 zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee' |
1695 | 75 |
76 ### show ### | |
77 | |
2020 | 78 qlc_artnet_dmx_proxy: |
79 qlcplus --open cur/qlc.qxw | |
80 | |
2024 | 81 no_screen_blanking: |
82 xset s off | |
83 xset -dpms | |
84 | |
1695 | 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: |
2036
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
113 eval pdm run nosetests -x $(NOSEARGS) |
1695 | 114 |
115 tests_watch: | |
2036
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
116 eval pdm run nosetests --with-watcher $(NOSEARGS) |
1695 | 117 |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
118 |
1695 | 119 tests_coverage: |
2036
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
120 eval pdm run nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) |
1695 | 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: |
2036
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
126 pnpx coffee -c light9/web/*.coffee |
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
127 pnpx 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 | |
2036
00afa5ec081a
restore more of the stats widget including the cpu/mem spinner
drewp@bigasterisk.com
parents:
2032
diff
changeset
|
131 watch -c pnpx 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 |