MCPcopy Create free account
hub / github.com/numpy/numpy / _build_import_library_amd64

Function _build_import_library_amd64

numpy/distutils/mingw32ccompiler.py:389–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387 return (False, candidates[0])
388
389def _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
409def _build_import_library_x86():
410 """ Build the import libraries for Mingw32-gcc on Windows

Callers 1

build_import_libraryFunction · 0.85

Calls 5

_check_for_import_libFunction · 0.85
find_python_dllFunction · 0.85
generate_defFunction · 0.85
infoMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected