MCPcopy Create free account
hub / github.com/MITK/MITK / parse_osx_version

Function parse_osx_version

CMakeExternals/Python3_macOS_numpy.py:16–20  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

14
15# Parse macOS version from wheel filename
16def parse_osx_version(tag):
17 m = re.search(r"macosx_(\d+)_(\d+)_", tag)
18 if not m:
19 return None
20 return (int(m.group(1)), int(m.group(2)))
21
22# Convert version string to tuple of integers
23def version_tuple(v):

Callers 1

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected