Installing Source - gazpachoking/deluge GitHub Wiki
You can either get the source from a tarball on our ftp or from our GitRepo.
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.
The 1.3.x dependencies are listed below. You will also need to install the appropriate build tools provided by your OS.
Include(http://git.deluge-torrent.org/deluge/plain/DEPENDS?h=1.3-stable, text/x-trac-wiki)
Apt-get line to install all above dependencies:
sudo apt-get install python python-twisted python-twisted-web python-openssl python-simplejson python-setuptools intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako
Ensure all Python dependencies are py2.7 and win32 (32-bit) versions.
- python-libtorrent 0.16
- Python 2.7
- Building Deluge is easier with the Python directory added to the Windows Path: Super User steps
- pip
- PyGame
- PyGTK All-in-one
- PyOpenSSL
- Win32OpenSSL Light
- PyWin32
- Twisted
The following packages do not have Windows installers, instead install them using Python easy_install, see command below:
After Python and pip are installed, open a console and run:
C:\Python27\Scripts\easy_install.exe zope.interface chardet mako pyxdg
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
- Ubuntu: Append
--install-layout=deb
to use/usr/bin/
prefix instead of default/usr/bin/local/
. - Microsoft Windows: Omit
sudo
prefix.
For Linux Desktop systems an extra step is required due to an installer bug not copying data files, such as deluge.desktop
:
sudo python setup.py install_data
Installing Deluge with develop mode creates binaries that link back to the source code so changes will be reflected immediately thus no need to repeatedly install.
python setup.py develop
If you wish to use a specific development directory, the following will create a Deluge install in ~/delugeDev:
export PYTHONPATH=${HOME}/delugeDev
python setup.py develop --install-dir ~/delugeDev
Another alternative for a separate Deluge development environment is to use Python Virtualenv
In the unlikely event you want to remove Deluge installed by the previous method, you will have to manually delete the Deluge related files on your system. The main files are normally installed in one of the following places:
/usr/lib/python2.x/site-packages
/usr/local/lib/python2.x/site-packages
/usr/lib/python2.x/dist-packages
/usr/local/lib/python2.x/dist-packages
Example:
sudo rm -r /usr/lib/python2.7/dist-packages/deluge*
To find and remove the remaining files use the locate
command and to ensure up-to date information also run updatedb
:
sudo updatedb
locate deluge