mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-10 19:46:22 +00:00
use the get_libtorrent.sh script to get libtorrent if it is missing
This commit is contained in:
parent
16a1173f1d
commit
d49cde1994
13
setup.py
13
setup.py
@ -213,7 +213,18 @@ except ImportError:
|
||||
else:
|
||||
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
|
||||
libtorrent = Extension(
|
||||
'libtorrent',
|
||||
|
Loading…
x
Reference in New Issue
Block a user