mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
Deluge will now use a system libtorrent library if available.
This commit is contained in:
parent
e2b9d5d936
commit
cc7e6d1ff2
9 changed files with 48 additions and 16 deletions
|
@ -10,6 +10,11 @@ Deluge 1.0.3 (In Development)
|
||||||
WebUI:
|
WebUI:
|
||||||
* Fix White template for Opera
|
* Fix White template for Opera
|
||||||
|
|
||||||
|
Misc:
|
||||||
|
* Deluge will now use a system libtorrent library if available.
|
||||||
|
* The build system will no longer build libtorrent if a system library is
|
||||||
|
detected.
|
||||||
|
|
||||||
Deluge 1.0.2 (10 October 2008)
|
Deluge 1.0.2 (10 October 2008)
|
||||||
Core:
|
Core:
|
||||||
* Fix issue where torrents will not be properly added to the session
|
* Fix issue where torrents will not be properly added to the session
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.configmanager import ConfigManager
|
from deluge.configmanager import ConfigManager
|
||||||
|
|
|
@ -46,7 +46,11 @@ import gobject
|
||||||
import threading
|
import threading
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
|
|
||||||
import deluge.configmanager
|
import deluge.configmanager
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
|
|
@ -37,6 +37,9 @@ import pickle
|
||||||
import cPickle
|
import cPickle
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
from deluge.configmanager import ConfigManager
|
from deluge.configmanager import ConfigManager
|
||||||
import deluge.core.torrentmanager
|
import deluge.core.torrentmanager
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
|
|
@ -40,6 +40,9 @@ import time
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
|
|
||||||
import deluge.common
|
import deluge.common
|
||||||
|
|
|
@ -179,6 +179,9 @@ class AddTorrentDialog(component.Component):
|
||||||
break
|
break
|
||||||
|
|
||||||
def add_from_files(self, filenames):
|
def add_from_files(self, filenames):
|
||||||
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
import deluge.libtorrent as lt
|
import deluge.libtorrent as lt
|
||||||
import os.path
|
import os.path
|
||||||
new_row = None
|
new_row = None
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -165,6 +165,9 @@ for source in _sources:
|
||||||
_sources.remove(source)
|
_sources.remove(source)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
_ext_modules = []
|
||||||
|
if not os.path.exists(os.path.join(sysconfig.get_config_var("LIBDIR"), "libtorrent-rasterbar.so.1")):
|
||||||
|
# There isn't a system libtorrent library, so let's build the one included with deluge
|
||||||
libtorrent = Extension(
|
libtorrent = Extension(
|
||||||
'libtorrent',
|
'libtorrent',
|
||||||
extra_compile_args = _extra_compile_args,
|
extra_compile_args = _extra_compile_args,
|
||||||
|
@ -174,6 +177,8 @@ libtorrent = Extension(
|
||||||
sources = _sources
|
sources = _sources
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_ext_modules = [libtorrent]
|
||||||
|
|
||||||
class build_trans(cmd.Command):
|
class build_trans(cmd.Command):
|
||||||
description = 'Compile .po files into .mo files'
|
description = 'Compile .po files into .mo files'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue