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

Function version_tuple

CMakeExternals/Python3_macOS_numpy.py:23–31  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

21
22# Convert version string to tuple of integers
23def version_tuple(v):
24 parts = []
25 for x in v.split("."):
26 m = re.match(r"(\d+)", x)
27 if m:
28 parts.append(int(m.group(1)))
29 else:
30 parts.append(0)
31 return tuple(parts)
32
33target_tuple = tuple(int(x) for x in args.osx_target.split("."))
34

Callers 1

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected