Mercurial > code > home > repos > light9
annotate makefile @ 1706:e30493d458f9
more npm setup. n3 upgraded but code is not, yet
Ignore-this: f2c1fdfef218cedc322e03d3784d1123
author | drewp@bigasterisk.com |
---|---|
date | Mon, 30 Apr 2018 06:37:19 +0000 |
parents | 115a268f1d74 |
children | 05248a7c2c51 |
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: |
1696
d9337dfe941a
upgrade polymer mods, nginx pkg choice
Drew Perttula <drewp@bigasterisk.com>
parents:
1695
diff
changeset
|
4 sudo aptitude install coffeescript normalize-audio audacity python-pygame libffi-dev tix libzmq3-dev python-dev libssl-dev python-opencv python-cairo npm git python-virtualenv nginx-full python-tk |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
5 |
1695 | 6 gst_packages: |
7 sudo aptitude install python-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 python-gst-1.0 python-pygoocanvas gir1.2-goocanvas-2.0 | |
1288
5e76c8fd8a03
rewrite dmx outputter to a new service
Drew Perttula <drewp@bigasterisk.com>
parents:
1240
diff
changeset
|
8 |
1695 | 9 PYTHON=/usr/bin/pypy |
10 PYTHON=/usr/bin/python | |
1362
168262618f2d
new test_js target for testing SyncedGraph
Drew Perttula <drewp@bigasterisk.com>
parents:
1327
diff
changeset
|
11 |
1695 | 12 create_virtualenv: |
13 mkdir -p env | |
14 virtualenv -p $(PYTHON) env | |
15 env/bin/pip install -U pip | |
16 ln -sf ../env/bin/python bin/python | |
1363
233b81d9bd9d
simple first version of SyncedGraph.runHandler
Drew Perttula <drewp@bigasterisk.com>
parents:
1362
diff
changeset
|
17 |
1233 | 18 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
19 install_python_deps: link_to_sys_packages |
1234
fb830770c703
silly txosc can't setup without twisted
Drew Perttula <drewp@bigasterisk.com>
parents:
1233
diff
changeset
|
20 env/bin/pip install twisted |
1299
02415a3cebb2
requirements.txt filename
Drew Perttula <drewp@bigasterisk.com>
parents:
1291
diff
changeset
|
21 env/bin/pip install -U -r requirements.txt |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
22 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
23 DP=/usr/lib/python2.7/dist-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
24 SP=env/lib/python2.7/site-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
25 |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
26 link_to_sys_packages: |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
27 # http://stackoverflow.com/questions/249283/virtualenv-on-ubuntu-with-no-site-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
28 ln -sf $(DP)/glib $(SP)/ |
907
cca75951554a
port ascoltami to Gst 1.0, work around the missing message signals
Drew Perttula <drewp@bigasterisk.com>
parents:
869
diff
changeset
|
29 ln -sf $(DP)/gi $(SP)/ |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
30 ln -sf $(DP)/gobject $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
31 ln -sf $(DP)/cairo $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
32 ln -sf $(DP)/gtk-2.0 $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
33 ln -sf $(DP)/pygtk.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
34 ln -sf $(DP)/pygtk.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
35 ln -sf $(DP)/pygst.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
36 ln -sf $(DP)/pygst.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
37 ln -sf $(DP)/gst-0.10 $(SP)/ |
869
83dfc2e87e62
add link to system goocanvas, for curvecalc
Drew Perttula <drewp@bigasterisk.com>
parents:
866
diff
changeset
|
38 ln -sf $(DP)/goocanvasmodule.so $(SP)/ |
1411 | 39 ln -sf $(DP)/cv2.x86_64-linux-gnu.so $(SP)/ |
40 ln -sf $(DP)/cv.py $(SP)/ | |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
41 |
1695 | 42 binexec: |
43 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
|
44 |
1572
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
45 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
46 node_modules/bower/bin/bower: |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
47 npm install |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
48 |
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 |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
52 bower: node_modules/bower/bin/bower bin/node |
9be85c08a69f
fix bower and npm builds
Drew Perttula <drewp@bigasterisk.com>
parents:
1563
diff
changeset
|
53 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
|
54 |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1705
diff
changeset
|
55 npm: |
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1705
diff
changeset
|
56 npm install |
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1705
diff
changeset
|
57 cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js |
1291
a36928f7cc35
upgrade jquery, use bower
Drew Perttula <drewp@bigasterisk.com>
parents:
1288
diff
changeset
|
58 |
1695 | 59 bin/ascoltami2: gst_packages link_to_sys_packages |
60 | |
61 effect_node_setup: create_virtualenv packages binexec install_python_deps | |
62 | |
63 tkdnd_build: | |
64 # get tkdnd r95 with subversion | |
65 # then apply tkdnd-patch-on-r95 to that | |
66 cd tkdnd/trunk | |
67 ./configure | |
68 make | |
69 | |
70 env-mypy/bin/mypy: | |
71 mkdir -p env-mypy | |
72 virtualenv -p /usr/bin/python3 env-mypy/ | |
1705
115a268f1d74
pixi tag, some version upgrades
Drew Perttula <drewp@bigasterisk.com>
parents:
1703
diff
changeset
|
73 env-mypy/bin/pip install mypy==0.590 lxml==4.2.1 |
1695 | 74 |
75 ### build ### | |
76 | |
77 coffee: | |
78 zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee' | |
79 | |
80 mypy-collector: env-mypy/bin/mypy | |
81 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py | |
82 | |
83 mypy-paint: env-mypy/bin/mypy | |
84 env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py | |
85 | |
86 ### show ### | |
87 | |
88 darcs_show_checkpoint: | |
89 darcs add --quiet --recursive ${LIGHT9_SHOW} | |
90 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW} | |
91 | |
92 ### pi setup ### | |
93 | |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
94 raspberry_pi_packages: |
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
95 sudo apt-get install python-picamera python-dev python-twisted python-virtualenv |
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
96 |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
97 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
98 mkdir -p env_pi |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
99 virtualenv --system-site-packages env_pi |
1546
eeadad4a998e
pi setup docs and fixes
Drew Perttula <drewp@bigasterisk.com>
parents:
1543
diff
changeset
|
100 env_pi/bin/pip install cyclone 'coloredlogs==6.0' |
1184 | 101 |
1695 | 102 ### arduino build ### |
1232
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 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
105 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
106 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
107 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
108 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
109 make upload |
1233 | 110 |
1695 | 111 ### testing ### |
112 | |
113 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
|
114 |
1695 | 115 tests: |
116 eval env/bin/nosetests -x $(NOSEARGS) | |
117 | |
118 tests_watch: | |
119 eval env/bin/nosetests --with-watcher $(NOSEARGS) | |
120 | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
121 |
1695 | 122 tests_coverage: |
123 eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS) | |
124 | |
125 test_js_init: | |
126 npm install | |
1506
37cbb245d93c
fix tests. add logging, some mypy types.
Drew Perttula <drewp@bigasterisk.com>
parents:
1432
diff
changeset
|
127 |
1695 | 128 test_js: |
129 coffee -c light9/web/*.coffee | |
130 node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee | |
1563 | 131 |
1695 | 132 test_js_watch: |
133 # have coffee continuously running | |
134 watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors |