From 6045541e89c76bd0690b61528479594751c104a7 Mon Sep 17 00:00:00 2001 From: xujiaqi01 <173596896@qq.com> Date: Tue, 17 Sep 2019 15:11:39 +0800 Subject: [PATCH] fix libps.so path problem (#19768) * fix libps.so path problem of 1/2/3 dir and third_party * test = develop --- python/setup.py.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/setup.py.in b/python/setup.py.in index efb29b08620..3288b6152c0 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -185,6 +185,10 @@ else: shutil.copy(os.path.dirname('${CBLAS_LIBRARIES}') + '/openblas' + ext_name, libs_path) package_data['paddle.libs'] += ['openblas' + ext_name] +if '${WITH_PSLIB}' == 'ON': + shutil.copy('${PSLIB_LIB}', libs_path) + package_data['paddle.libs'] += ['libps' + ext_name] + if '${WITH_MKLDNN}' == 'ON': if '${CMAKE_BUILD_TYPE}' == 'Release' and os.name != 'nt': # only change rpath in Release mode. -- GitLab