mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
Fix mac python lib link
This commit is contained in:
@@ -78,7 +78,11 @@ def process_on_mac(current_dir):
|
|||||||
for d in dirs:
|
for d in dirs:
|
||||||
if d not in ["lib", "lib64"]:
|
if d not in ["lib", "lib64"]:
|
||||||
continue
|
continue
|
||||||
rel_path = rel_path = os.path.relpath(os.path.join(root, d), libs_path)
|
rel_path = os.path.relpath(os.path.join(root, d), libs_path)
|
||||||
|
if path in user_specified_dirs:
|
||||||
|
# Note(zhoushunjie): Use the absolute path for user_specified_dirs
|
||||||
|
rpath = os.path.join(root, d)
|
||||||
|
else:
|
||||||
rpath = "$loader_path/" + rel_path
|
rpath = "$loader_path/" + rel_path
|
||||||
for lib in fd_libs:
|
for lib in fd_libs:
|
||||||
pre_commands.append(
|
pre_commands.append(
|
||||||
@@ -97,7 +101,6 @@ def process_on_mac(current_dir):
|
|||||||
assert subprocess.Popen(
|
assert subprocess.Popen(
|
||||||
cmd, shell=True) != 0, "Execute command failed: {}".format(cmd)
|
cmd, shell=True) != 0, "Execute command failed: {}".format(cmd)
|
||||||
|
|
||||||
|
|
||||||
def process_on_windows(current_dir):
|
def process_on_windows(current_dir):
|
||||||
libs_path = os.path.join(current_dir, "fastdeploy", "libs")
|
libs_path = os.path.join(current_dir, "fastdeploy", "libs")
|
||||||
third_libs_path = os.path.join(libs_path, "third_libs")
|
third_libs_path = os.path.join(libs_path, "third_libs")
|
||||||
|
Reference in New Issue
Block a user