[Python-Dev] Unable to build regex module against Python 3.5 32-bit (original) (raw)

Paul Moore p.f.moore at gmail.com
Tue May 26 11:50:17 CEST 2015


On 26 May 2015 at 07:49, Paul Moore <p.f.moore at gmail.com> wrote:

Do you get the same failure when using distutils to build the extension?

Hmm, I just checked and it seems that only Python 3.5 ships libpythonXY.a by default - 3.4 and earlier (at least on my machine) don't have it. Presumably you generated it yourself for the previous versions?

So I wonder if this is a difference between how you built your version previously and how the shipped version is now built. The code to build the shipped version is in Tools\msi\dev\dev.wixproj. It runs

gendef - "$(BuildPath)$(PyDllName).dll" >

"$(IntermediateOutputPath)mingwlib.def" dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" -m $(_GenDefPlatform)

which looks OK to me (_GenDefPlatform is i386 on 32-bit and i386:x86-64 on 64-bit).

Paul



More information about the Python-Dev mailing list