(path: str)
| 529 | |
| 530 | |
| 531 | def _macos_codesign(path: str) -> None: |
| 532 | env = dict(os.environ) |
| 533 | command = ["codesign"] |
| 534 | command.extend(["-s", "-", "-f", "--entitlements"]) |
| 535 | |
| 536 | # write our entitlements file to a temp path |
| 537 | temp = tempfile.NamedTemporaryFile() |
| 538 | temp.write(bytes(MACOS_ENTITLEMENTS_DATA, "utf-8")) |
| 539 | temp.flush() |
| 540 | |
| 541 | command.append(temp.name) |
| 542 | command.append(path) |
| 543 | |
| 544 | spawn.runv(command, env=env) |
| 545 | |
| 546 | |
| 547 | def _connect_sql(urlstr: str) -> psycopg.Connection | None: |