/
INSTALL
96 lines (56 loc) · 2.41 KB
/
INSTALL
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
INSTALLATION
------------
Debian and RPM users can download freshly built binaries here:
http://cola.tuxfamily.org/releases/
If you downloaded a tarball add /path/to/cola/bin to your $PATH.
REQUIREMENTS
Python 2.4 or newer
http://python.org/
apt-get install python
PyQt 4.3 or newer
http://www.riverbankcomputing.co.uk/software/pyqt/intro
apt-get install pyqt4-dev-tools
ADDITIONAL REQUIREMENTS (optional)
pyinotify (enables inotify support on Linux -- highly recommended)
http://pyinotify.sourceforge.net/
apt-get install python-pyinotify
simplejson (enables bookmarks)
http://pypi.python.org/pypi/simplejson
apt-get install python-simplejson
BUILDING FROM SOURCE
Normally you can just do "make install" to install git-cola
in your $HOME directory ($HOME/bin, $HOME/lib, etc).
If you want to do a global install you can do
# make prefix=/usr install
To build cola on windows you'll need to add the following
shell script to a directory in your path and name it 'pyuic4':
#+-------------------------------------------------------------
#!/bin/sh
/c/Python25/python.exe \
/c/Python25/Lib/site-packages/PyQt4/uic/pyuic.py "$@"
#+-------------------------------------------------------------
WINDOWS INSTALLATION
1) Install the native Python2.5 and PyQt4 installers (in that order):
http://python.org/download/
http://www.riverbankcomputing.co.uk/pyqt/download.php
3) Install msysgit:
http://git.or.cz/gitwiki/WindowsInstall
4) Install the GnuWin32 'file' command:
http://gnuwin32.sourceforge.net/packages/file.htm
Add the installed directory (default: c:\GnuWin32\bin) to your path.
5) Install simplejson
http://pypi.python.org/pypi/simplejson
6) Download cola:
http://cola.tuxfamily.org/releases/
7) Install cola (from a Git Bash):
cd /c/Python25/Lib/site-packages
tar xvfz /path/to/cola-*-win32.tar.gz
mv cola-*-win32 cola
8) Create an executable in your path for bash, cmd.exe, or both:
echo '/c/Python25/python.exe /c/Python25/Lib/site-packages/cola/bin/git-cola' >> /usr/bin/cola
echo 'c:\\Python25\\python.exe c:\\Python25\\Lib\\site-packages\\cola\\bin\\git-cola' > /c/Windows/System32/cola.bat
This assumes the you have Python/PyQt4 installed in C:/Python25.
If this is not the case simply edit the commands accordingly.
voila, cola on Windows.
NOTE: Windows is not the developer's primary platform.
Patches are greatly appreciated.