MCPcopy Create free account
hub / github.com/conda/constructor / is_macho_binary

Function is_macho_binary

constructor/osxpkg.py:52–57  ·  view source on GitHub ↗
(file: Path)

Source from the content-addressed store, hash-verified

50
51
52def is_macho_binary(file: Path) -> bool:
53 if not file.is_file():
54 return False
55 with file.open(mode="rb") as f:
56 magic = f.read(4)
57 return magic in MACHO_MAGIC_BYTES
58
59
60def calculate_install_dir(yaml_file, subdir=None):

Callers 2

test_macos_signingFunction · 0.90
sign_standalone_binaryFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_macos_signingFunction · 0.72