From 644f0ecb38e63530d204e5fc113cce46bf61682a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 8 Oct 2009 02:51:49 +0000 Subject: [PATCH] Modify setup.py to allow building without libtorrent/ --- DEPENDS | 8 +------- setup.py | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/DEPENDS b/DEPENDS index 1f9d05344..9292e1496 100644 --- a/DEPENDS +++ b/DEPENDS @@ -8,13 +8,7 @@ * gettext * pyxdg * geoip-database (optional) - - * libtorrent >= 0.14, or build the included version - - * If building included libtorrent:: - * boost >= 1.34.1 - * openssl - * zlib + * libtorrent >= 0.14.5 === UIs === * chardet diff --git a/setup.py b/setup.py index f691fe7d8..7e24f3989 100644 --- a/setup.py +++ b/setup.py @@ -207,7 +207,7 @@ except ImportError: else: build_libtorrent = False -if build_libtorrent: +if build_libtorrent and os.path.exists("libtorrent"): # There isn't a system libtorrent library, so let's build the one included with deluge libtorrent = Extension( 'libtorrent',