Version 20 (modified by Cas, 12 years ago) (diff) |
---|
Installing Deluge From Source
Download Source
You can either get the source from a tarball on our ftp or from our GitRepo.
Dependencies
Deluge has a number of dependencies that are required for it to run properly. Most of them are runtime only deps, but a few are required for successfully building Deluge.
Along with the following packages, you will also need to install the appropriate build tools provided by your OS.
Debian/Ubuntu? Dependencies
Apt-get line to install all above dependencies:
sudo apt-get install python python-twisted python-twisted-web2 python-openssl python-simplejson python-setuptools gettext intltool python-xdg python-chardet python-geoip python-libtorrent python-notify python-pygame python-gtk2 python-gtk2-dev librsvg2-dev xdg-utils python-mako
Windows Dependencies
Make sure all Python dependencies are py2.6 and win32 (32-bit) versions.
- python-libtorrent
- Python 2.6 (python-2.6.6.msi)
- SetupTools (setuptools-0.6c11.win32-py2.6.exe)
- PyGame (pygame-1.9.1.win32-py2.6.msi)
- PyGTK (pygtk-all-in-one-2.24.0.win32-py2.6.msi)
- PyOpenSSL (pyOpenSSL-0.13.winxp32-py2.6.msi)
- OpenSSL (Win32OpenSSL_Light-0_9_8r.exe)
- Py Win Extensions (pywin32-216.win32-py2.6.exe)
- Twisted 11 (Twisted-11.0.0.winxp32-py2.6.msi)
The following packages do not have Windows installers but are straightforward to install.
After Python and Setuptools are installed, open a console and run:
C:\Python26\Scripts\easy_install.exe zope.interface chardet mako pyxdg
Building and Installing
The first step you should do is make sure you have a clean build environment.
python setup.py clean -a
Now the build:
python setup.py build
And finally, install the package to your system:
sudo python setup.py install
If you are using Ubuntu you will need to use this command instead:
sudo python setup.py install --install-layout=deb
Developer Install
This will create a Deluge install in ~/delugeDev but will link back to the source code directory so changes you make will be reflected immediately without having to install again.
export PYTHONPATH=${HOME}/delugeDev python setup.py develop --install-dir ~/delugeDev
Removing From System
In the unlikely event you want to remove a copy of Deluge installed by the previous method, you will have to manually delete the Deluge related files on your system. For the most part you can simply delete deluge related files in your site-packages folder.
Example:
sudo rm -r /usr/lib/python2.5/site-packages/deluge*
There will still be some files located in /usr/share that you can hunt down and delete if you wish to.