MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / has_binary

Method has_binary

pythonfmu/builder.py:346–351  ·  view source on GitHub ↗

Does the binary for this platform exits?

()

Source from the content-addressed store, hash-verified

344
345 @staticmethod
346 def has_binary() -> bool:
347 """Does the binary for this platform exits?"""
348 binary_folder = get_platform()
349 lib_ext = get_lib_extension() or "*" # if library extension is unknown, it will look for '*.*' in src_binaries
350 src_binaries = HERE / "resources" / "binaries" / binary_folder
351 return src_binaries.exists() and len(list(src_binaries.glob(f"*.{lib_ext}"))) >= 1
352
353
354def create_command_parser(parser: argparse.ArgumentParser):

Callers 4

test_zip_contentFunction · 0.80
test_logger.pyFile · 0.80

Calls 2

get_platformFunction · 0.85
get_lib_extensionFunction · 0.85

Tested by 1

test_zip_contentFunction · 0.64