Mercurial > code > home > repos > light9
annotate makefile @ 1240:c6d675ee3de4
deps
Ignore-this: a39dd31d3218c5e6aef0df8dd720b535
author | drewp@bigasterisk.com |
---|---|
date | Fri, 12 Jun 2015 10:01:58 +0000 |
parents | fb830770c703 |
children | 5e76c8fd8a03 |
rev | line source |
---|---|
1103
771f50f19b4b
single-line effect code now evals by changing <uri> into a suitable python object
Drew Perttula <drewp@bigasterisk.com>
parents:
1087
diff
changeset
|
1 NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect" |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
2 |
820
f7ae0faa0a44
makefile and nosetests path fix. new contextsForStatement
drewp@bigasterisk.com
parents:
diff
changeset
|
3 tests: |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
4 eval env/bin/nosetests -x $(NOSEARGS) |
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
5 |
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
6 tests_watch: |
1103
771f50f19b4b
single-line effect code now evals by changing <uri> into a suitable python object
Drew Perttula <drewp@bigasterisk.com>
parents:
1087
diff
changeset
|
7 eval env/bin/nosetests --with-watcher $(NOSEARGS) |
827
9816e249ce2e
add nose build instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
825
diff
changeset
|
8 |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
9 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
10 # needed packages: python-gtk2 python-imaging |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
11 |
1233 | 12 binexec: |
13 chmod a+x bin/* | |
14 | |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
15 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
|
16 env/bin/pip install twisted |
1209
b7c752e49355
upgrade many modules
Drew Perttula <drewp@bigasterisk.com>
parents:
1184
diff
changeset
|
17 env/bin/pip install -U -r pydeps |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
18 |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
19 DP=/usr/lib/python2.7/dist-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
20 SP=env/lib/python2.7/site-packages |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
21 |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
22 link_to_sys_packages: |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
23 # 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
|
24 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
|
25 ln -sf $(DP)/gi $(SP)/ |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
26 ln -sf $(DP)/gobject $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
27 ln -sf $(DP)/cairo $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
28 ln -sf $(DP)/gtk-2.0 $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
29 ln -sf $(DP)/pygtk.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
30 ln -sf $(DP)/pygtk.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
31 ln -sf $(DP)/pygst.pth $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
32 ln -sf $(DP)/pygst.py $(SP)/ |
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
33 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
|
34 ln -sf $(DP)/goocanvasmodule.so $(SP)/ |
860
8189f27679a1
gtk+PIL visible in virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
827
diff
changeset
|
35 |
825
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
36 PYTHON=/usr/bin/pypy |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
37 PYTHON=/usr/bin/python |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
38 |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
39 create_virtualenv: |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
40 mkdir -p env |
a8942364e4ee
switch from buildout to virtualenv
Drew Perttula <drewp@bigasterisk.com>
parents:
820
diff
changeset
|
41 virtualenv -p $(PYTHON) env |
1209
b7c752e49355
upgrade many modules
Drew Perttula <drewp@bigasterisk.com>
parents:
1184
diff
changeset
|
42 env/bin/pip install -U pip |
863 | 43 ln -sf ../env/bin/python bin/python |
862
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
44 |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
45 tkdnd_build: |
866
43ddee394d28
more tkdnd install instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
863
diff
changeset
|
46 # get tkdnd r95 with subversion |
43ddee394d28
more tkdnd install instructions
Drew Perttula <drewp@bigasterisk.com>
parents:
863
diff
changeset
|
47 # then apply tkdnd-patch-on-r95 to that |
862
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
48 cd tkdnd/trunk |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
49 ./configure |
ee07ea5cd46b
start makefile for tkdnd build
Drew Perttula <drewp@bigasterisk.com>
parents:
860
diff
changeset
|
50 make |
912 | 51 |
52 bin/ascoltami2: gst_packages link_to_sys_packages | |
53 | |
54 gst_packages: | |
1109 | 55 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 |
919
33a5a98e9bf1
start subserver webapp with websockets, cyclone, jade, coffee
drewp@bigasterisk.com
parents:
913
diff
changeset
|
56 |
33a5a98e9bf1
start subserver webapp with websockets, cyclone, jade, coffee
drewp@bigasterisk.com
parents:
913
diff
changeset
|
57 packages: |
1240 | 58 sudo aptitude install coffeescript freemind normalize-audio audacity python-pygoocanvas python-pygame gir1.2-goocanvas-2.0-9 libffi-dev tix libzmq3 python-dev libssl-dev |
1087
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
59 |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
60 raspberry_pi_virtualenv: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
61 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
|
62 virtualenv --system-site-packages env_pi |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
63 |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
64 raspberry_pi_packages: |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
65 sudo apt-get install python-picamera python-twisted |
1f877950ad28
new picamserve for raspberry pi camera -> http, especially with crop control
Drew Perttula <drewp@bigasterisk.com>
parents:
1070
diff
changeset
|
66 env_pi/bin/pip install cyclone coloredlogs |
1184 | 67 |
68 darcs_show_checkpoint: | |
69 darcs add --quiet --recursive ${LIGHT9_SHOW} | |
70 darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW} | |
1232
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
71 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
72 /usr/share/arduino/Arduino.mk: |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
73 sudo aptitude install arduino-mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
74 |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
75 arduino_upload: /usr/share/arduino/Arduino.mk |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
76 cd rgbled |
beb0688cbfd8
arduino_upload target
Drew Perttula <drewp@bigasterisk.com>
parents:
1230
diff
changeset
|
77 make upload |
1233 | 78 |
79 effect_node_setup: create_virtualenv packages binexec install_python_deps |