Files
@ bc8989d84bb2
Branch filter:
Location: light9/makefile - annotation
bc8989d84bb2
3.4 KiB
text/x-makefile
logging
Ignore-this: 63818d7fdf78fb559575b3c09d2166df
Ignore-this: 63818d7fdf78fb559575b3c09d2166df
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 03125dac50a2 9816e249ce2e 03125dac50a2 55e41b61b472 9816e249ce2e 03125dac50a2 55e41b61b472 5e76c8fd8a03 55e41b61b472 168262618f2d 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 233b81d9bd9d 55e41b61b472 55e41b61b472 8189f27679a1 03125dac50a2 03125dac50a2 1f877950ad28 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f 9be85c08a69f b46f6977168b e30493d458f9 e30493d458f9 7fe81130b735 7fe81130b735 a36928f7cc35 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 bd0c83b063df 03125dac50a2 375f48d1518a 375f48d1518a 03125dac50a2 3f1b9b9b0505 375f48d1518a 3f1b9b9b0505 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 eeadad4a998e 55e41b61b472 eeadad4a998e 1f877950ad28 1f877950ad28 55e41b61b472 eeadad4a998e 499ef7c133eb 03125dac50a2 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 beb0688cbfd8 15a13eba6fc3 03125dac50a2 03125dac50a2 03125dac50a2 d6396679c121 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 37cbb245d93c 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 03125dac50a2 37cbb245d93c 03125dac50a2 bd0c83b063df 03125dac50a2 1b42120d97f5 03125dac50a2 03125dac50a2 03125dac50a2 66a55cb17cbf 66a55cb17cbf 66a55cb17cbf 66a55cb17cbf | ### setup ###
packages:
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
gst_packages:
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
PYTHON=/usr/bin/python3
create_virtualenv:
mkdir -p env
virtualenv -p $(PYTHON) env
env/bin/pip install -U pip
ln -sf ../env/bin/python bin/python
install_python_deps:
env/bin/pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U -r requirements.txt
binexec:
chmod a+x bin/*
node_modules/bower/bin/bower:
npm install
bin/node:
ln -sf `which nodejs` bin/node
bower: node_modules/bower/bin/bower bin/node
cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
npm:
npm install
(cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js)
node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug
bin/ascoltami2: gst_packages link_to_sys_packages
effect_node_setup: create_virtualenv packages binexec install_python_deps
tkdnd_build:
# get tkdnd r95 with subversion
# then apply tkdnd-patch-on-r95 to that
cd tkdnd/trunk
./configure
make
### build ###
coffee:
zsh -c 'cd light9/web; ../../node_modules/coffeescript/bin/coffee --map -cw {.,live,timeline,paint,effects}/*.coffee'
mypy:
inv mypy
reformat:
inv reformat
### show ###
darcs_show_checkpoint:
darcs add --quiet --recursive ${LIGHT9_SHOW}
darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
### pi setup ###
raspberry_pi_packages:
sudo apt-get install python3-picamera python3-dev python3-twisted python3-virtualenv
raspberry_pi_virtualenv:
mkdir -p env_pi
virtualenv -p /usr/bin/python3 --system-site-packages env_pi
env_pi/bin/pip install cyclone 'coloredlogs==6.0'
### arduino build ###
/usr/share/arduino/Arduino.mk:
sudo aptitude install arduino-mk
arduino_upload: /usr/share/arduino/Arduino.mk
cd rgbled
make upload
### testing ###
NOSEARGS="--no-path-adjustment light9.rdfdb.rdflibpatch light9.rdfdb.patch light9.effecteval.test_effect light9.collector light9.rdfdb.graphfile_test light9.paint light9.effect"
tests:
eval env/bin/nosetests -x $(NOSEARGS)
tests_watch:
eval env/bin/nosetests --with-watcher $(NOSEARGS)
tests_coverage:
eval env/bin/nosetests --with-coverage --cover-erase --cover-html --cover-html-dir=/tmp/light9-cov/ --cover-package=light9 --cover-branches $(NOSEARGS)
test_js_init:
npm install
test_js:
node_modules/coffeescript/bin/coffee -c light9/web/*.coffee
node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee
test_js_watch:
# have coffee continuously running
watch -c node_modules/mocha/bin/mocha --compilers coffee:coffee-script/register --globals window,N3 light9/web/graph_test.coffee --colors
profile_seq:
echo in lib, get https://github.com/uber/pyflame.git and https://github.com/brendangregg/FlameGraph.git
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
|