1.0.7 for macosx and ios by srg70 fixes

pull/1/head
DiMartinoXBMC 2016-01-17 12:10:26 +03:00
parent 997b145940
commit c210d2d31b
2 changed files with 4 additions and 4 deletions

View File

@ -125,8 +125,8 @@ def get_system(ret):
ret["system"] = 'darwin' ret["system"] = 'darwin'
ret["message"] = ['It is possible to compile python-libtorrent for OS X.', ret["message"] = ['It is possible to compile python-libtorrent for OS X.',
'But you would have to do it by yourself, there is some info on github.com.'] 'But you would have to do it by yourself, there is some info on github.com.']
elif ret["os"] == "ios": elif ret["os"] == "ios" and ret["arch"] == "arm":
ret["system"] = 'ios' ret["system"] = 'ios_arm'
ret["message"] = ['It is probably NOT possible to compile python-libtorrent for iOS.', ret["message"] = ['It is probably NOT possible to compile python-libtorrent for iOS.',
'But you can use torrent-client control functions.'] 'But you can use torrent-client control functions.']

View File

@ -44,7 +44,7 @@ if not os.path.exists(os.path.join(os.path.dirname(__file__), platform['system']
for ver in versions: for ver in versions:
if not os.path.isdir(os.path.join(os.path.dirname(__file__), platform['system'],ver)): if not os.path.isdir(os.path.join(os.path.dirname(__file__), platform['system'],ver)):
versions.remove(ver) versions.remove(ver)
if len(versions)>1: if len(versions)>0:
platform['version'] = versions[0] platform['version'] = versions[0]
else: else:
log('die because the folder is empty') log('die because the folder is empty')
@ -69,7 +69,7 @@ if platform['system'] not in ['windows']:
try: try:
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']: if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7', 'linux_x86_64']:
import libtorrent import libtorrent
elif platform['system'] in ['darwin', 'ios']: elif platform['system'] in ['darwin', 'ios_arm']:
import imp import imp
path_list = [dest_path] path_list = [dest_path]
log('path_list = ' + str(path_list)) log('path_list = ' + str(path_list))