Skip to content

Commit

Permalink
Fix sagedoc; remove signature before adding rpaths.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Jul 28, 2024
1 parent 067b00c commit 75c7eea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sage_framework/files/sagedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,8 @@ def _open(self, name, testing=False):
url = self._base_url + os.path.join(name, "index.html")
path = os.path.join(self._base_path, name, "index.html")
if doc_server:
doc_server.visit(name)
doc_server.visit(name)
return
elif os.path.exists(path):
os.system(browser() + " " + path)
else:
Expand Down
1 change: 1 addition & 0 deletions Sage_framework/fix_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def build_rpath(relpath):

def fix(self):
rpaths = self.fixed_rpaths()
subprocess.run(['codesign', '--remove-signature', self.path], capture_output=True)
subprocess.run(['macher', 'clear_rpaths', self.path], capture_output=True)
for rpath in rpaths:
subprocess.run(['macher', 'add_rpath', rpath, self.path], capture_output=True)
Expand Down

0 comments on commit 75c7eea

Please sign in to comment.