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"):
|
if os.path.exists("fastdeploy/libs/third_libs"):
|
||||||
shutil.rmtree("fastdeploy/libs/third_libs")
|
shutil.rmtree("fastdeploy/libs/third_libs")
|
||||||
# shutil.copytree(
|
shutil.copytree(
|
||||||
# ".setuptools-cmake-build/third_libs/install",
|
".setuptools-cmake-build/third_libs/install",
|
||||||
# "fastdeploy/libs/third_libs",
|
"fastdeploy/libs/third_libs",
|
||||||
# symlinks=True)
|
symlinks=True)
|
||||||
|
|
||||||
if platform.system().lower() == "linux":
|
if platform.system().lower() == "linux":
|
||||||
rpaths = ["${ORIGIN}"]
|
rpaths = ["${ORIGIN}"]
|
||||||
@@ -380,8 +380,6 @@ if sys.argv[1] == "install" or sys.argv[1] == "bdist_wheel":
|
|||||||
|
|
||||||
all_files = get_all_files("fastdeploy/libs")
|
all_files = get_all_files("fastdeploy/libs")
|
||||||
for f in all_files:
|
for f in all_files:
|
||||||
if f.count("third_libs") > 0:
|
|
||||||
continue
|
|
||||||
package_data[PACKAGE_NAME].append(os.path.relpath(f, "fastdeploy"))
|
package_data[PACKAGE_NAME].append(os.path.relpath(f, "fastdeploy"))
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
|
|||||||
Reference in New Issue
Block a user