From d075ac888e9fdb0362df1c32b18ed6b83b67332e Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 28 Sep 2009 15:18:51 +0000 Subject: [PATCH] use the version check within deluge so the correct version is checked for --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 60cc66ae9..81cab164e 100644 --- a/setup.py +++ b/setup.py @@ -201,12 +201,9 @@ _ext_modules = [] # Check for a system libtorrent and if found, then do not build the libtorrent extension build_libtorrent = True try: - import libtorrent + from deluge._libtorrent import lt except ImportError: build_libtorrent = True -else: - if libtorrent.version_major == 0 and libtorrent.version_minor == 14: - build_libtorrent = False if build_libtorrent: # There isn't a system libtorrent library, so let's build the one included with deluge