From 405815ff444fa0fdfb68cbdc42c00fd3e4f12f4a Mon Sep 17 00:00:00 2001 From: MRXLT Date: Fri, 25 Sep 2020 09:00:43 +0000 Subject: [PATCH] support py35 --- doc/LATEST_PACKAGES.md | 4 ++++ python/setup.py.client.in | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/LATEST_PACKAGES.md b/doc/LATEST_PACKAGES.md index dca3d235..247c04c0 100644 --- a/doc/LATEST_PACKAGES.md +++ b/doc/LATEST_PACKAGES.md @@ -36,6 +36,10 @@ https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp37-none-a ``` https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp36-none-any.whl ``` +### Python 3.5 +``` +https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp35-none-any.whl +``` ### Python 2.7 ``` https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp27-none-any.whl diff --git a/python/setup.py.client.in b/python/setup.py.client.in index bcedc415..196ff6c5 100644 --- a/python/setup.py.client.in +++ b/python/setup.py.client.in @@ -30,15 +30,17 @@ py_version = sys.version_info def copy_lib(): if py_version[0] == 2: lib_list = ['libpython2.7.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] + elif py_version[1] == 5: + lib_list = ['libpython3.5m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] elif py_version[1] == 6: lib_list = ['libpython3.6m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] elif py_version[1] == 7: lib_list = ['libpython3.7m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] os.popen('mkdir -p paddle_serving_client/lib') for lib in lib_list: - r = os.popen('whereis {}'.format(lib)) + r = os.popen('which {}'.format(lib)) text = r.read() - os.popen('cp {} ./paddle_serving_client/lib'.format(text.strip().split(' ')[1])) + os.popen('cp {} ./paddle_serving_client/lib'.format(text.strip())) max_version, mid_version, min_version = util.python_version() -- GitLab