(context)
| 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): |
no test coverage detected