[issue25027] Python 3.5.0rc3 on Windows can not load more than 127 C extension modules

Steve Dower report at bugs.python.org
Wed Sep 9 04:29:03 CEST 2015


Steve Dower added the comment:

Okay, here's a proposal:

We bundle vcruntime140.dll with Python's normal install, so it's always there and extensions that use it do not need to ship anything.

When distutils._msvccompiler is used to build an extension with a *different* version of MSVC, it will copy the dependency or statically link (as in my attached patch).

This does not prevent us from changing the compiler used for 3.5, as long as we continue to ship both vcruntime140.dll and the newer version, and extensions build with newer compilers will include the dependency or pick up the bundled one if they are on a version that includes it.

(Extensions that use C++ and depend on msvcp###.dll will need to ship that themselves, obviously.)

I'll post a new patch shortly, but it's only a very small change from this one for distutils, and the rest is in the installer.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25027>
_______________________________________


More information about the Python-bugs-list mailing list