adang1345 / delvewheel

Self-contained Python wheels for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't mangle msvcr*.dll

isc-adang opened this issue · comments

Traceback (most recent call last):
  File "c:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python39\Scripts\delvewheel.exe\__main__.py", line 7, in <module>
  File "c:\program files\python39\lib\site-packages\delvewheel\__main__.py", line 66, in main
    wr.repair(args.target, no_mangles, args.no_mangle_all, args.lib_sdir)
  File "c:\program files\python39\lib\site-packages\delvewheel\wheel_repair.py", line 291, in repair
    patch_dll.replace_needed(lib_path, needed, name_mangler)
  File "c:\program files\python39\lib\site-packages\delvewheel\patch_dll.py", line 163, in replace_needed
    raise RuntimeError(
RuntimeError: Unable to rename the dependencies of msvcp120.dll because this DLL has trailing data. If this DLL was created with MinGW, run the strip utility. Otherwise, use the --no-mangle flag.

msvcr120.dll should not be name-mangled by default because msvcp120.dll cannot be edited and depends on msvcr120.dll.