[Distutils] Binary installer on Windows can't install extension

Malte Forkel malte.forkel at berlin.de
Wed Jun 19 16:08:44 CEST 2013


Am 19.06.2013 13:57, schrieb M.-A. Lemburg:
> 
> The unresolved reference to MSVCR90.DLL is shown for all distutils
> compiled extensions, so this is most likely the result of distutils
> removing the manifest from compiled C extensions to force the linker
> to use the Python DLL's CRT libs - this in return avoids problem with
> having to place the CRT manifests into each extension directory.
> 
After my initial problems, this now to works for me. I still don't
understand what went wrong initially, though.

> I have no idea why the Windows linker attempts to load a x86 DLL into
> a x64 process. The manifest included with OpenVPN clearly shows that
> the DLL is for a different platform, even though it uses the same
> version as the one listed in the python.exe manifest.
> 
I can a confirm this for the manifest included with OpenVPN 2.2.1 which
I had installed before:

    <assemblyIdentity
        type="win32"
        name="Microsoft.VC90.CRT"
        version="9.0.21022.8"
        processorArchitecture="x86"
        publicKeyToken="1fc8b3b9a1e18e3b"
    />

When Dependency Walker showed a reference from mxDateTime.pyd to the
32-bit version of MSVCR90.DLL, it always also showed a reference from
PYTHON27.DLL to the 64-bit version of MSVCR90.DLL.




More information about the Distutils-SIG mailing list