()
| 387 | return (False, candidates[0]) |
| 388 | |
| 389 | def _build_import_library_amd64(): |
| 390 | out_exists, out_file = _check_for_import_lib() |
| 391 | if out_exists: |
| 392 | log.debug('Skip building import library: "%s" exists', out_file) |
| 393 | return |
| 394 | |
| 395 | # get the runtime dll for which we are building import library |
| 396 | dll_file = find_python_dll() |
| 397 | log.info('Building import library (arch=AMD64): "%s" (from %s)' % |
| 398 | (out_file, dll_file)) |
| 399 | |
| 400 | # generate symbol list from this library |
| 401 | def_name = "python%d%d.def" % tuple(sys.version_info[:2]) |
| 402 | def_file = os.path.join(sys.prefix, 'libs', def_name) |
| 403 | generate_def(dll_file, def_file) |
| 404 | |
| 405 | # generate import library from this symbol list |
| 406 | cmd = ['dlltool', '-d', def_file, '-l', out_file] |
| 407 | subprocess.check_call(cmd) |
| 408 | |
| 409 | def _build_import_library_x86(): |
| 410 | """ Build the import libraries for Mingw32-gcc on Windows |
no test coverage detected