Modify setup.py to allow building without libtorrent/

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

View file

@ -8,13 +8,7 @@
* gettext * gettext
* pyxdg * pyxdg
* geoip-database (optional) * geoip-database (optional)
* libtorrent >= 0.14.5
* libtorrent >= 0.14, or build the included version
* If building included libtorrent::
* boost >= 1.34.1
* openssl
* zlib
=== UIs === === UIs ===
* chardet * chardet

View file

@ -207,7 +207,7 @@ except ImportError:
else: else:
build_libtorrent = False 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 # There isn't a system libtorrent library, so let's build the one included with deluge
libtorrent = Extension( libtorrent = Extension(
'libtorrent', 'libtorrent',