use the get_libtorrent.sh script to get libtorrent if it is missing

This commit is contained in:
Damien Churchill 2010-07-22 21:13:26 +01:00
parent 16a1173f1d
commit d49cde1994

View File

@ -213,7 +213,18 @@ except ImportError:
else: else:
build_libtorrent = False build_libtorrent = False
if build_libtorrent and os.path.exists("libtorrent") and os.listdir("libtorrent"): if build_libtorrent:
got_libtorrent = False
if not os.path.exists("libtorrent"):
import subprocess
if subprocess.call(['./get_libtorrent.sh']) > 0:
got_libtorrent = False
else:
got_libtorrent = True
else:
got_libtorrent = True
if got_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',