MCPcopy Create free account
hub / github.com/Autodesk/Aurora / _GetPythonLibraryFilename

Function _GetPythonLibraryFilename

Scripts/installExternalsFunctions.py:170–177  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

168 # config_var for it. But we can deduce it for each platform, and this
169 # logic works for any Python version.
170 def _GetPythonLibraryFilename(context):
171 if Windows():
172 return "python{version}.lib".format(
173 version=sysconfig.get_config_var("py_version_nodot"))
174 elif Linux():
175 return sysconfig.get_config_var("LDLIBRARY")
176 else:
177 raise RuntimeError("Platform not supported")
178
179 pythonIncludeDir = sysconfig.get_path("include")
180 if not pythonIncludeDir or not os.path.isdir(pythonIncludeDir):

Callers 1

GetPythonInfoFunction · 0.85

Calls 3

WindowsFunction · 0.85
LinuxFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected