Modify setup.py to allow building without libtorrent/

This commit is contained in:
Andrew Resch 2009-10-08 02:51:49 +00:00
parent 42a57b1f41
commit 644f0ecb38
2 changed files with 2 additions and 8 deletions

View file

@ -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

View file

@ -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',