From b246d428c9ad91b9b659f20eb1495fd07ea81690 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Tue, 13 Oct 2020 20:46:51 +0800 Subject: [PATCH] fix client pack --- python/setup.py.client.in | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/python/setup.py.client.in b/python/setup.py.client.in index 196ff6c5..8d213a21 100644 --- a/python/setup.py.client.in +++ b/python/setup.py.client.in @@ -28,19 +28,11 @@ import util 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') + lib_list = ['${OPENSSL_CRYPTO_LIBRARY}', '${OPENSSL_SSL_LIBRARY}', + '${PYTHON_LIBRARY}'] for lib in lib_list: - r = os.popen('which {}'.format(lib)) - text = r.read() - os.popen('cp {} ./paddle_serving_client/lib'.format(text.strip())) + os.popen('cp {} ./paddle_serving_client/lib'.format(lib)) max_version, mid_version, min_version = util.python_version() -- GitLab