MCPcopy Index your code
hub / github.com/python/cpython / getFullVersion

Function getFullVersion

Mac/BuildScript/build-installer.py:100–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98_cache_getFullVersion = None
99
100def getFullVersion():
101 global _cache_getFullVersion
102 if _cache_getFullVersion is not None:
103 return _cache_getFullVersion
104 fn = os.path.join(SRCDIR, 'Include', 'patchlevel.h')
105 for ln in open(fn):
106 if 'PY_VERSION' in ln:
107 _cache_getFullVersion = ln.split()[-1][1:-1]
108 return _cache_getFullVersion
109 raise RuntimeError("Cannot find full version??")
110
111FW_PREFIX = ["Library", "Frameworks", "Python.framework"]
112FW_VERSION_PREFIX = "--undefined--" # initialized in parseOptions

Callers 6

parseOptionsFunction · 0.85
buildPythonDocsFunction · 0.85
patchFileFunction · 0.85
packageFromRecipeFunction · 0.85
makeMpkgPlistFunction · 0.85
buildDMGFunction · 0.85

Calls 3

openFunction · 0.50
joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…