diff --git a/platform_pulsar.py b/platform_pulsar.py index 9afbd8f..5dba602 100644 --- a/platform_pulsar.py +++ b/platform_pulsar.py @@ -13,11 +13,11 @@ except: def get_libname(platform): libname=[] - if platform['system'] in ['darwin', 'linux_x86']: + if platform['system'] in ['darwin', 'linux_x86', 'linux_arm']: libname=['libtorrent.so'] elif platform['system'] == 'windows': libname=['libtorrent.pyd'] - elif platform['system'] in ['linux_arm', 'linux_x86_64']: + elif platform['system'] in ['linux_x86_64']: libname=['libtorrent.so', 'libtorrent-rasterbar.so.7'] elif platform['system'] in ['android_armv7', 'android_x86']: libname=['libtorrent.so', 'liblibtorrent.so'] diff --git a/python_libtorrent/__init__.py b/python_libtorrent/__init__.py index ec958d0..23bdaba 100644 --- a/python_libtorrent/__init__.py +++ b/python_libtorrent/__init__.py @@ -35,7 +35,7 @@ if platform['system'] not in ['windows']: log('os: '+str(os.uname())) try: - if platform['system'] in ['linux_x86', 'windows']: + if platform['system'] in ['linux_x86', 'windows', 'linux_arm']: import libtorrent elif platform['system'] in ['darwin']: import imp @@ -48,7 +48,7 @@ try: libtorrent = imp.load_module('libtorrent', fp, pathname, description) finally: if fp: fp.close() - elif platform['system'] in ['linux_x86_64', 'linux_arm']: + elif platform['system'] in ['linux_x86_64']: from ctypes import CDLL dll_path=os.path.join(dest_path, 'libtorrent-rasterbar.so.7') log('CDLL path = ' + dll_path) diff --git a/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.size.txt b/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.size.txt deleted file mode 100644 index 86e9940..0000000 --- a/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.size.txt +++ /dev/null @@ -1 +0,0 @@ -2682776 \ No newline at end of file diff --git a/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.zip b/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.zip deleted file mode 100644 index 68038ad..0000000 Binary files a/python_libtorrent/linux_arm/libtorrent-rasterbar.so.7.zip and /dev/null differ diff --git a/python_libtorrent/linux_arm/libtorrent.so.size.txt b/python_libtorrent/linux_arm/libtorrent.so.size.txt index 409b753..a716383 100644 --- a/python_libtorrent/linux_arm/libtorrent.so.size.txt +++ b/python_libtorrent/linux_arm/libtorrent.so.size.txt @@ -1 +1 @@ -1252364 \ No newline at end of file +2338996 \ No newline at end of file diff --git a/python_libtorrent/linux_arm/libtorrent.so.zip b/python_libtorrent/linux_arm/libtorrent.so.zip index c6cbad0..f8f9a29 100644 Binary files a/python_libtorrent/linux_arm/libtorrent.so.zip and b/python_libtorrent/linux_arm/libtorrent.so.zip differ