Fix mac python lib link

This commit is contained in:
zhoushunjie
2022-09-22 19:26:11 +08:00
parent 13580aeb0d
commit 50117fa6d2

View File

@@ -78,7 +78,11 @@ def process_on_mac(current_dir):
for d in dirs:
if d not in ["lib", "lib64"]:
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
for lib in fd_libs:
pre_commands.append(
@@ -97,7 +101,6 @@ def process_on_mac(current_dir):
assert subprocess.Popen(
cmd, shell=True) != 0, "Execute command failed: {}".format(cmd)
def process_on_windows(current_dir):
libs_path = os.path.join(current_dir, "fastdeploy", "libs")
third_libs_path = os.path.join(libs_path, "third_libs")