gui: fix the gui settings save/restore
[git-cola.git] / INSTALL
blob32cb7a0e8f57a7b66bf86786154c44ad5299799b
1 INSTALLATION
2 ------------
4 Debian and RPM users can download freshly built binaries here:
6     http://cola.tuxfamily.org/releases/
8 If you downloaded a tarball add /path/to/cola/bin to your $PATH.
11 REQUIREMENTS
13 Python 2.4 or newer
14     http://python.org/
15     apt-get install python
17 PyQt 4.3 or newer
18     http://www.riverbankcomputing.co.uk/software/pyqt/intro
19     apt-get install pyqt4-dev-tools
22 ADDITIONAL REQUIREMENTS (optional)
24 pyinotify (enables inotify support on Linux -- highly recommended)
25     http://pyinotify.sourceforge.net/
26     apt-get install python-pyinotify
28 simplejson (enables bookmarks)
29     http://pypi.python.org/pypi/simplejson
30     apt-get install python-simplejson
33 BUILDING FROM SOURCE
35 Normally you can just do "make install" to install git-cola
36 in your $HOME directory ($HOME/bin, $HOME/lib, etc).
37 If you want to do a global install you can do
39     # make prefix=/usr install
41 You can also run git-cola without installing it.
42 It is designed to run directly out of the source tree
43 This is the best way to run git-cola when you're
44 modifying the code.
46     $ make
47     $ bin/git-cola
50 BUILD ISSUES
52 Some systems have pyuic4 scripts that are missing the shebang line.
53 If your version of $(wich pyuic4) looks like:
55 exec python /path/to/pyuic4.py ...
57 Then simply add this line to the top of the file:
59 #!/bin/sh
61 That will fix the build by making pyuic4 a proper shell script.
64 PYQT4 ISSUES
66 An older version of pyuic4 generated code that could not be
67 run by PyQt4.  This problem has been fixed in the latest
68 versions of PyQt4 (4.4.x), but you might encounter it if
69 you are not running the latest version of PyQt4.
71 If you try to run git-cola and see error messages
72 about "setSortingEnabled(..)" then your pyuic4/PyQt4
73 version is affected. There's a simple workaround, though:
74 remove the line of code listed in the traceback and
75 everything should work fine.
78 PYUIC4 AND WINDOWS
80 To build cola on windows you'll need to add the following
81 shell script to a directory in your path and name it 'pyuic4':
83 #+-------------------------------------------------------------
85 #!/bin/sh
86 /c/Python25/python.exe \
87 /c/Python25/Lib/site-packages/PyQt4/uic/pyuic.py "$@"
89 #+-------------------------------------------------------------
92 WINDOWS INSTALLATION
94 1) Install the native Python2.5 and PyQt4 installers (in that order):
96     http://python.org/download/
97     http://www.riverbankcomputing.co.uk/pyqt/download.php
99 3) Install msysgit:
101     http://git.or.cz/gitwiki/WindowsInstall
103 4) Install the GnuWin32 'file' command:
105     http://gnuwin32.sourceforge.net/packages/file.htm
107     Add the installed directory (default: c:\GnuWin32\bin) to your path.
109 5) Install simplejson
111     http://pypi.python.org/pypi/simplejson
113 6) Download cola:
115     http://cola.tuxfamily.org/releases/
117 7) Install cola (from a Git Bash):
119     cd /c/Python25/Lib/site-packages
120     tar xvfz /path/to/cola-*-win32.tar.gz
121     mv cola-*-win32 cola
123 8) Create an executable in your path for bash, cmd.exe, or both:
125     echo '/c/Python25/python.exe /c/Python25/Lib/site-packages/cola/bin/git-cola' >> /usr/bin/cola
126     echo 'c:\\Python25\\python.exe c:\\Python25\\Lib\\site-packages\\cola\\bin\\git-cola' > /c/Windows/System32/cola.bat
128 This assumes the you have Python/PyQt4 installed in C:/Python25.
129 If this is not the case simply edit the commands accordingly.
131 voila, cola on Windows.
134 NOTE: Windows is not the developer's primary platform.
135 Patches are greatly appreciated.