This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: patch to build mingw library
Type: Stage:
Components: Build Versions: Python 2.4
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, paul.moore
Priority: normal Keywords: patch

Created on 2004-12-20 23:01 by paul.moore, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
msi.patch paul.moore, 2004-12-20 23:01 Patch file - apply in src\Tools\msi directory
Messages (3)
msg47397 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2004-12-20 23:01
The attached patch updates the MSI build process to
build a mingw-compatible libpythonXX.a and install it
in the Python "libs" directory.

The additional step requires 2 executables, nm and
dlltool, to be available on PATH. These are part of the
binutils package of either mingw or cygwin. The build
should warn, and skip the inclusion of libpythonXX.a,
if the tools are not available.

Note: I do not have a Python build environment (no
Visual Studio .NET) and so cannot test this patch fully
- the script depends on VS.NET registry keys
that aren't available on my PC. I've checked that
libpythonXX.a is built correctly, but I can't ensure
that the MSI file gets built properly :-( Assistance in
testing this would be appreciated...
msg47398 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-12-22 14:09
Logged In: YES 

Thanks for the patch, committed as 1.20 and

I built a package at

Please try this out, and confirm that you can, with this 
package, build extensions with cygwin, without further 
msg47399 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2004-12-22 20:58
Logged In: YES 

I can confirm that with this package, and no other Python
extensions installed, I can build extensions with mingw, out
of the box.

Looks great - thanks!
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41350
2004-12-20 23:01:50paul.moorecreate