Mercurial > code > home > repos > light9
annotate makefile @ 2421:ac55319a2eac
don't drop patches that arrive before we get WS connected
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 May 2024 16:10:39 -0700 |
parents | bf7b5c344de1 |
children |
rev | line source |
---|---|
1695 | 1 ### setup ### |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
2 |
2340
45975e8f16f0
reminder of how to get 'performance' scaling governor
drewp@bigasterisk.com
parents:
2324
diff
changeset
|
3 |
1695 | 4 packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
5 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
6 audacity \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
7 coffeescript \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
8 curl \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
9 git \ |
2110 | 10 libblas-dev \ |
11 libcairo2-dev \ | |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
12 libffi-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
13 libjpeg8-dev \ |
2110 | 14 liblapack-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
15 libssl-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
16 libzmq3-dev \ |
2110 | 17 mercurial \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
18 nginx-core \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
19 nginx-full \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
20 normalize-audio \ |
2110 | 21 python3-cairo-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
22 python3-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
23 python3-opencv \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
24 python3-pygame \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
25 python3-tk \ |
2138 | 26 sox \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
27 tix \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
28 zlib1g-dev |
1968 | 29 |
1695 | 30 gst_packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
31 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
32 gir1.2-goocanvas-2.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
33 gir1.2-gst-plugins-base-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
34 gir1.2-gstreamer-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
35 gstreamer1.0-plugins-good \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
36 gstreamer1.0-pulseaudio \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
37 gstreamer1.0-tools \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
38 libgirepository-1.0-1 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
39 libgirepository1.0-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
40 python3-gi \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
41 python3-gst-1.0 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
42 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
43 pnpm: |
2377 | 44 sudo npm install -g pnpm@8.12.0 |
2057 | 45 |
1572
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
46 bin/node: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
47 ln -sf `which nodejs` bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
48 |
2057 | 49 pdm_local_install: |
50 # drew has ~/bin in $PATH | |
2377 | 51 pip install "pdm==2.12.4" |
2057 | 52 ln -s ../.local/bin/pdm ~/bin |
53 | |
2044 | 54 js: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
55 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
|
56 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
57 py: |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
58 pdm sync |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
59 |
2044 | 60 setup: packages gst_packages pnpm js py |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
61 |
2044 | 62 deps: js py |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
63 |
2041 | 64 push_github: |
65 hg bookmark -r default main && hg push git+ssh://git@github.com/drewp/light9.git | |
66 | |
67 pull_github: | |
68 hg pull git+ssh://git@github.com/drewp/light9.git | |
69 | |
2392 | 70 pydeps: |
71 echo make sure src/light9/all_deps.py depends on all toplevel tools | |
72 pdm run pydeps --only=light9 --reverse --rankdir=BT --max-bacon=0 -o=work/2024/pydeps_output.svg --no-show -T=svg src/light9/all_deps.py | |
73 echo wrote https://bigasterisk.com/light9/work/2024/pydeps_output.svg | |
74 | |
1695 | 75 ### show ### |
76 | |
2020 | 77 qlc_artnet_dmx_proxy: |
78 qlcplus --open cur/qlc.qxw | |
79 | |
2391 | 80 performance_mode: |
81 for x ( /sys/devices/system/cpu/cpufreq/policy*/scaling_governor) { echo performance | sudo tee $x } | |
82 | |
2024 | 83 no_screen_blanking: |
84 xset s off | |
85 xset -dpms | |
86 | |
2324 | 87 pulseaudio_loopback_device: |
88 pactl load-module module-loopback | |
89 | |
2180 | 90 show_data_checkpoint: |
91 hg add ${LIGHT9_SHOW} | |
92 hg com ${LIGHT9_SHOW} -m "checkpoint show data" | |
1695 | 93 |
94 ### pi setup ### | |
95 | |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
96 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
|
97 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
|
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 |
1856
55e41b61b472
python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents:
1772
diff
changeset
|
101 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
|
102 env_pi/bin/pip install cyclone 'coloredlogs==6.0' |
1184 | 103 |
1695 | 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 | 112 |
1695 | 113 ### testing ### |
114 | |
2167 | 115 pytest: |
116 pdm run pytest | |
1695 | 117 |
2167 | 118 pytest_watch: |
2309 | 119 pdm run pytest-watch |
1695 | 120 |
121 test_js: | |
2257 | 122 pnpm exec vitest |
1772 | 123 |
124 profile_seq: | |
125 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git | |
126 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 |