Mercurial > code > home > repos > light9
annotate makefile @ 2257:8ebf79d6b957
add vitest
author | drewp@bigasterisk.com |
---|---|
date | Mon, 29 May 2023 11:33:23 -0700 |
parents | c921e1cae0af |
children | 1aaa449e89d0 |
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 \ |
2110 | 9 libblas-dev \ |
10 libcairo2-dev \ | |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
11 libffi-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
12 libjpeg8-dev \ |
2110 | 13 liblapack-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
14 libssl-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
15 libzmq3-dev \ |
2110 | 16 mercurial \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
17 nginx-core \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
18 nginx-full \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
19 normalize-audio \ |
2110 | 20 python3-cairo-dev \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
21 python3-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
22 python3-opencv \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
23 python3-pygame \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
24 python3-tk \ |
2138 | 25 sox \ |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
26 tix \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
27 zlib1g-dev |
1968 | 28 |
1695 | 29 gst_packages: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
30 sudo aptitude install -y \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
31 gir1.2-goocanvas-2.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
32 gir1.2-gst-plugins-base-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
33 gir1.2-gstreamer-1.0 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
34 gstreamer1.0-plugins-good \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
35 gstreamer1.0-pulseaudio \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
36 gstreamer1.0-tools \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
37 libgirepository-1.0-1 \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
38 libgirepository1.0-dev \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
39 python3-gi \ |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
40 python3-gst-1.0 |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
41 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
42 pnpm: |
2138 | 43 sudo npm install -g pnpm@7.29.3 |
2057 | 44 |
1572
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
45 bin/node: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
46 ln -sf `which nodejs` bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
47 |
2057 | 48 pdm_local_install: |
49 # drew has ~/bin in $PATH | |
2063
1c772cb39908
got rdfdb to use local dev version, finally
drewp@bigasterisk.com
parents:
2057
diff
changeset
|
50 pip install "pdm==1.15.0" |
2057 | 51 ln -s ../.local/bin/pdm ~/bin |
52 | |
2044 | 53 js: |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
54 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
|
55 |
2038
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
56 py: |
5154f5a23e85
reworking initial setup; get bin/asco running
drewp@bigasterisk.com
parents:
2036
diff
changeset
|
57 pdm sync |
1946
a362b892cb43
more makefile hacks to turn debug.js into an ES6 module
Drew Perttula <drewp@bigasterisk.com>
parents:
1945
diff
changeset
|
58 |
2044 | 59 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
|
60 |
2044 | 61 deps: js py |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
62 |
2041 | 63 push_github: |
64 hg bookmark -r default main && hg push git+ssh://git@github.com/drewp/light9.git | |
65 | |
66 pull_github: | |
67 hg pull git+ssh://git@github.com/drewp/light9.git | |
68 | |
1695 | 69 ### show ### |
70 | |
2020 | 71 qlc_artnet_dmx_proxy: |
72 qlcplus --open cur/qlc.qxw | |
73 | |
2024 | 74 no_screen_blanking: |
75 xset s off | |
76 xset -dpms | |
77 | |
2180 | 78 show_data_checkpoint: |
79 hg add ${LIGHT9_SHOW} | |
80 hg com ${LIGHT9_SHOW} -m "checkpoint show data" | |
1695 | 81 |
82 ### pi setup ### | |
83 | |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
84 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
|
85 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
|
86 |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
87 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
88 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
|
89 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
|
90 env_pi/bin/pip install cyclone 'coloredlogs==6.0' |
1184 | 91 |
1695 | 92 ### arduino build ### |
1232
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
93 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
94 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
95 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
96 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
97 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
98 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
99 make upload |
1233 | 100 |
1695 | 101 ### testing ### |
102 | |
2167 | 103 pytest: |
104 pdm run pytest | |
1695 | 105 |
2167 | 106 pytest_watch: |
107 pdm run ptw | |
1695 | 108 |
109 test_js: | |
2257 | 110 pnpm exec vitest |
1772 | 111 |
112 profile_seq: | |
113 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git | |
114 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 |