-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.txt
70 lines (39 loc) · 1.54 KB
/
setup.txt
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
SciPy, Matplotlib, etc:
http://fonnesbeck.github.io/ScipySuperpack/
curl -O https://raw.github.com/fonnesbeck/ScipySuperpack/master/install_superpack.sh
sh install_superpack.sh
PIL:
Download libjpeg source from http://libjpeg.sourceforge.net/
Download zlib source from http://zlib.net/
Download source from http://www.pythonware.com/products/pil/
Put jpeglib and zlib below Imaging folder. Edit jconfig.h, then run
PYTHONPATH=../../src/ninja/misc python ninja.py && ninja
to build them.
Edit setup.py to have:
JPEG_ROOT = './ninjaout', './jpeg-6b'
ZLIB_ROOT = './ninjaout', './zlib-1.2.8'
Build PIL:
CFLAGS=-Qunused-arguments python setup.py build
sudo python setup.py install
vlfeat:
Grab binaries from http://www.vlfeat.org/ , add them to PATH
pydot:
sudo easy_install pydot
PyGame:
Grab binaries from http://www.pygame.org/download.shtml
PyOpenGL:
sudo pip install PyOpenGL PyOpenGL_accelerate
Data files:
merton1 from http://www.robots.ox.ac.uk/~vgg/data/data-mview.html
CherryPy:
Hit "Download" on http://www.cherrypy.org/ , get zip, cd there, do
sudo python setup.py install
LibSVN:
Download zip from http://www.csie.ntu.edu.tw/~cjlin/libsvm/ , unzip, cd there,
make
cd python && make
cd ..
sudo mkdir /Library/Python/2.7/site-packages/libsvm
sudo touch /Library/Python/2.7/site-packages/libsvm/__init__.py
sudo cp libsvm.so.2 python/svm.py python/svmutil.py /Library/Python/2.7/site-packages/libsvm
sudo sed -i -e 's:\.\./::' /Library/Python/2.7/site-packages/libsvm/svm.py