annotate makefile @ 1901:7fe81130b735

move web logging to https://github.com/visionmedia/debug/ so it can have channels that can be turned off Ignore-this: bc5147fdfe1e4712d671cfc36698a6f
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 01 Jun 2019 01:11:58 +0000
parents 375f48d1518a
children 5acdf209394d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
1 ### setup ###
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
2
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
3 packages:
1856
55e41b61b472 python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents: 1772
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 python3-virtualenv nginx-full python3-tk
827
9816e249ce2e add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents: 825
diff changeset
5
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
6 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
7 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
8
1856
55e41b61b472 python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents: 1772
diff changeset
9 PYTHON=/usr/bin/python3
1362
168262618f2d new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents: 1327
diff changeset
10
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
11 create_virtualenv:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
12 mkdir -p env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
13 virtualenv -p $(PYTHON) env
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
14 env/bin/pip install -U pip
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
15 ln -sf ../env/bin/python bin/python
1363
233b81d9bd9d simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents: 1362
diff changeset
16
1856
55e41b61b472 python 3 upgrade starts: makefile and requirements pull py3 pkgs (with some pkg updates)
drewp@bigasterisk.com
parents: 1772
diff changeset
17 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
18 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
19
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
20 binexec:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
21 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
22
1572
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
23
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
24 node_modules/bower/bin/bower:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
25 npm install
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
26
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
27 bin/node:
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
28 ln -sf `which nodejs` bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
29
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
30 bower: node_modules/bower/bin/bower bin/node
9be85c08a69f fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents: 1563
diff changeset
31 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
32
1706
e30493d458f9 more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents: 1705
diff changeset
33 npm:
e30493d458f9 more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents: 1705
diff changeset
34 npm install
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
35 (cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js)
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
36 node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug
1291
a36928f7cc35 upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents: 1288
diff changeset
37
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
38 bin/ascoltami2: gst_packages link_to_sys_packages
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
39
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
40 effect_node_setup: create_virtualenv packages binexec install_python_deps
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
41
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
42 tkdnd_build:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
43 # get tkdnd r95 with subversion
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
44 # then apply tkdnd-patch-on-r95 to that
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
45 cd tkdnd/trunk
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
46 ./configure
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
47 make
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
48
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
49 ### build ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
50
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
51 coffee:
1713
bd0c83b063df bower, polymer, coffee updates
Drew Perttula <drewp@bigasterisk.com>
parents: 1710
diff changeset
52 zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee'
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
53
1864
375f48d1518a mypy, flake8 setups
Drew Perttula <drewp@bigasterisk.com>
parents: 1857
diff changeset
54 mypy:
375f48d1518a mypy, flake8 setups
Drew Perttula <drewp@bigasterisk.com>
parents: 1857
diff changeset
55 inv mypy
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
56
1857
3f1b9b9b0505 add yapf tool
drewp@bigasterisk.com
parents: 1856
diff changeset
57 reformat:
1864
375f48d1518a mypy, flake8 setups
Drew Perttula <drewp@bigasterisk.com>
parents: 1857
diff changeset
58 inv reformat
1857
3f1b9b9b0505 add yapf tool
drewp@bigasterisk.com
parents: 1856
diff changeset
59
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
60 ### show ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
61
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
62 darcs_show_checkpoint:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
63 darcs add --quiet --recursive ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
64 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
65
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
66 ### pi setup ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
67
1546
eeadad4a998e pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents: 1543
diff changeset
68 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
69 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
70
1087
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
71 raspberry_pi_virtualenv:
1f877950ad28 new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents: 1070
diff changeset
72 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
73 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
74 env_pi/bin/pip install cyclone 'coloredlogs==6.0'
1184
499ef7c133eb make rule for checkpoints
drewp@bigasterisk.com
parents: 1112
diff changeset
75
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
76 ### arduino build ###
1232
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
77
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
78 /usr/share/arduino/Arduino.mk:
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
79 sudo aptitude install arduino-mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
80
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
81 arduino_upload: /usr/share/arduino/Arduino.mk
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
82 cd rgbled
beb0688cbfd8 arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents: 1230
diff changeset
83 make upload
1233
15a13eba6fc3 effect_node_setup
Drew Perttula <drewp@bigasterisk.com>
parents: 1232
diff changeset
84
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
85 ### testing ###
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
86
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
87 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
88
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
89 tests:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
90 eval env/bin/nosetests -x $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
91
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
92 tests_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
93 eval env/bin/nosetests --with-watcher $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
94
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
95
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
96 tests_coverage:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
97 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS)
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
98
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
99 test_js_init:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
100 npm install
1506
37cbb245d93c fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents: 1432
diff changeset
101
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
102 test_js:
1713
bd0c83b063df bower, polymer, coffee updates
Drew Perttula <drewp@bigasterisk.com>
parents: 1710
diff changeset
103 node_modules/coffeescript/bin/coffee -c light9/web/*.coffee
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
104 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
1563
1b42120d97f5 mypy upgrade
Drew Perttula <drewp@bigasterisk.com>
parents: 1546
diff changeset
105
1695
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
106 test_js_watch:
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
107 # have coffee continuously running
03125dac50a2 reorder makefile
Drew Perttula <drewp@bigasterisk.com>
parents: 1694
diff changeset
108 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors
1772
66a55cb17cbf notes on pyflame
Drew Perttula <drewp@bigasterisk.com>
parents: 1713
diff changeset
109
66a55cb17cbf notes on pyflame
Drew Perttula <drewp@bigasterisk.com>
parents: 1713
diff changeset
110 profile_seq:
66a55cb17cbf notes on pyflame
Drew Perttula <drewp@bigasterisk.com>
parents: 1713
diff changeset
111 echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git
66a55cb17cbf notes on pyflame
Drew Perttula <drewp@bigasterisk.com>
parents: 1713
diff changeset
112 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