mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +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
|
@ -8,7 +8,12 @@ Deluge 1.0.3 (In Development)
|
||||||
* Fix ip filtering
|
* Fix ip filtering
|
||||||
|
|
||||||
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:
|
||||||
|
|
|
@ -36,7 +36,10 @@
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
import deluge.libtorrent as lt
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
||||||
class AlertManager(component.Component):
|
class AlertManager(component.Component):
|
||||||
|
|
|
@ -33,7 +33,10 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
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
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
|
@ -46,7 +46,11 @@ import gobject
|
||||||
import threading
|
import threading
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
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,7 +37,10 @@ import pickle
|
||||||
import cPickle
|
import cPickle
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
import deluge.libtorrent as lt
|
||||||
from deluge.configmanager import ConfigManager
|
from deluge.configmanager import ConfigManager
|
||||||
import deluge.core.torrentmanager
|
import deluge.core.torrentmanager
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
|
|
@ -35,7 +35,10 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
import deluge.libtorrent as lt
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.configmanager import ConfigManager
|
from deluge.configmanager import ConfigManager
|
||||||
|
|
|
@ -40,7 +40,10 @@ import time
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
import deluge.libtorrent as lt
|
||||||
|
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
|
|
@ -179,7 +179,10 @@ class AddTorrentDialog(component.Component):
|
||||||
break
|
break
|
||||||
|
|
||||||
def add_from_files(self, filenames):
|
def add_from_files(self, filenames):
|
||||||
import deluge.libtorrent as lt
|
try:
|
||||||
|
import libtorrent as lt
|
||||||
|
except ImportError:
|
||||||
|
import deluge.libtorrent as lt
|
||||||
import os.path
|
import os.path
|
||||||
new_row = None
|
new_row = None
|
||||||
|
|
||||||
|
|
21
setup.py
21
setup.py
|
@ -165,14 +165,19 @@ for source in _sources:
|
||||||
_sources.remove(source)
|
_sources.remove(source)
|
||||||
break
|
break
|
||||||
|
|
||||||
libtorrent = Extension(
|
_ext_modules = []
|
||||||
'libtorrent',
|
if not os.path.exists(os.path.join(sysconfig.get_config_var("LIBDIR"), "libtorrent-rasterbar.so.1")):
|
||||||
extra_compile_args = _extra_compile_args,
|
# There isn't a system libtorrent library, so let's build the one included with deluge
|
||||||
include_dirs = _include_dirs,
|
libtorrent = Extension(
|
||||||
libraries = _libraries,
|
'libtorrent',
|
||||||
library_dirs = _library_dirs,
|
extra_compile_args = _extra_compile_args,
|
||||||
sources = _sources
|
include_dirs = _include_dirs,
|
||||||
)
|
libraries = _libraries,
|
||||||
|
library_dirs = _library_dirs,
|
||||||
|
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