Mercurial > code > home > repos > light9
annotate makefile @ 2350:72c589cb96d1
looknig for a bug
author | drewp@bigasterisk.com |
---|---|
date | Sat, 03 Jun 2023 15:45:27 -0700 |
parents | 45975e8f16f0 |
children | 2088c500415e |
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 performance_mode: |
45975e8f16f0
reminder of how to get 'performance' scaling governor
drewp@bigasterisk.com
parents:
2324
diff
changeset
|
4 for x ( /sys/devices/system/cpu/cpufreq/policy*/scaling_governor) { echo performance | sudo tee $x } |
45975e8f16f0
reminder of how to get 'performance' scaling governor
drewp@bigasterisk.com
parents:
2324
diff
changeset
|
5 |
45975e8f16f0
reminder of how to get 'performance' scaling governor
drewp@bigasterisk.com
parents:
2324
diff
changeset
|
6 |
1695 | 7 packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
8 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
9 audacity \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
10 coffeescript \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
11 curl \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
12 git \ |
2110 | 13 libblas-dev \ |
14 libcairo2-dev \ | |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
15 libffi-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
16 libjpeg8-dev \ |
2110 | 17 liblapack-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
18 libssl-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
19 libzmq3-dev \ |
2110 | 20 mercurial \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
21 nginx-core \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
22 nginx-full \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
23 normalize-audio \ |
2110 | 24 python3-cairo-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
25 python3-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
26 python3-opencv \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
27 python3-pygame \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
28 python3-tk \ |
2138 | 29 sox \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
30 tix \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
31 zlib1g-dev |
1968 | 32 |
1695 | 33 gst_packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
34 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
35 gir1.2-goocanvas-2.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
36 gir1.2-gst-plugins-base-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
37 gir1.2-gstreamer-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
38 gstreamer1.0-plugins-good \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
39 gstreamer1.0-pulseaudio \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
40 gstreamer1.0-tools \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
41 libgirepository-1.0-1 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
42 libgirepository1.0-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
43 python3-gi \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
44 python3-gst-1.0 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
45 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
46 pnpm: |
2138 | 47 sudo npm install -g pnpm@7.29.3 |
2057 | 48 |
1572
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 |
2057 | 52 pdm_local_install: |
53 # drew has ~/bin in $PATH | |
2063
1c772cb39908
got rdfdb to use local dev version, finally
drewp@bigasterisk.com
parents:
2057
diff
changeset
|
54 pip install "pdm==1.15.0" |
2057 | 55 ln -s ../.local/bin/pdm ~/bin |
56 | |
2044 | 57 js: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
58 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
|
59 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
60 py: |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
61 pdm sync |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
62 |
2044 | 63 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
|
64 |
2044 | 65 deps: js py |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
66 |
2041 | 67 push_github: |
68 hg bookmark -r default main && hg push git+ssh://git@github.com/drewp/light9.git | |
69 | |
70 pull_github: | |
71 hg pull git+ssh://git@github.com/drewp/light9.git | |
72 | |
1695 | 73 ### show ### |
74 | |
2020 | 75 qlc_artnet_dmx_proxy: |
76 qlcplus --open cur/qlc.qxw | |
77 | |
2024 | 78 no_screen_blanking: |
79 xset s off | |
80 xset -dpms | |
81 | |
2324 | 82 pulseaudio_loopback_device: |
83 pactl load-module module-loopback | |
84 | |
2180 | 85 show_data_checkpoint: |
86 hg add ${LIGHT9_SHOW} | |
87 hg com ${LIGHT9_SHOW} -m "checkpoint show data" | |
1695 | 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 | |
2167 | 110 pytest: |
111 pdm run pytest | |
1695 | 112 |
2167 | 113 pytest_watch: |
2309 | 114 pdm run pytest-watch |
1695 | 115 |
116 test_js: | |
2257 | 117 pnpm exec vitest |
1772 | 118 |
119 profile_seq: | |
120 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git | |
121 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 |