|
@@ -407,6 +407,7 @@ class WheelFile(object):
|
|
|
deps_path = '@executable_path/../Frameworks'
|
|
deps_path = '@executable_path/../Frameworks'
|
|
|
else:
|
|
else:
|
|
|
deps_path = '@loader_path'
|
|
deps_path = '@loader_path'
|
|
|
|
|
+ remove_signature = False
|
|
|
loader_path = [os.path.dirname(source_path)]
|
|
loader_path = [os.path.dirname(source_path)]
|
|
|
for dep in deps:
|
|
for dep in deps:
|
|
|
if dep.endswith('/Python'):
|
|
if dep.endswith('/Python'):
|
|
@@ -439,6 +440,11 @@ class WheelFile(object):
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
subprocess.call(["install_name_tool", "-change", dep, new_dep, temp.name])
|
|
subprocess.call(["install_name_tool", "-change", dep, new_dep, temp.name])
|
|
|
|
|
+ remove_signature = True
|
|
|
|
|
+
|
|
|
|
|
+ # Remove the codesign signature if we modified the library.
|
|
|
|
|
+ if remove_signature:
|
|
|
|
|
+ subprocess.call(["codesign", "--remove-signature", temp.name])
|
|
|
else:
|
|
else:
|
|
|
# On other unixes, we just add dependencies normally.
|
|
# On other unixes, we just add dependencies normally.
|
|
|
for dep in deps:
|
|
for dep in deps:
|