mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
fix core dump
This commit is contained in:
10
setup.py
10
setup.py
@@ -353,10 +353,10 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
|
||||
|
||||
if os.path.exists("fastdeploy/libs/third_libs"):
|
||||
shutil.rmtree("fastdeploy/libs/third_libs")
|
||||
# shutil.copytree(
|
||||
# ".setuptools-cmake-build/third_libs/install",
|
||||
# "fastdeploy/libs/third_libs",
|
||||
# symlinks=True)
|
||||
shutil.copytree(
|
||||
".setuptools-cmake-build/third_libs/install",
|
||||
"fastdeploy/libs/third_libs",
|
||||
symlinks=True)
|
||||
|
||||
if platform.system().lower() == "linux":
|
||||
rpaths = ["${ORIGIN}"]
|
||||
@@ -380,8 +380,6 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
|
||||
|
||||
all_files = get_all_files("fastdeploy/libs")
|
||||
for f in all_files:
|
||||
if f.count("third_libs") > 0:
|
||||
continue
|
||||
package_data[PACKAGE_NAME].append(os.path.relpath(f, "fastdeploy"))
|
||||
|
||||
setuptools.setup(
|
||||
|
||||
Reference in New Issue
Block a user