classification
Title: msi.py patch to build mingw library
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, pmoore (2)
Priority: normal Keywords: patch

Created on 2004-12-20 23:01 by pmoore, last changed 2004-12-22 20:58 by pmoore.

Files
File name Uploaded Description Edit Remove
msi.patch pmoore, 2004-12-20 23:01 Patch file - apply in src\Tools\msi directory
Messages (3)
msg47397 - (view) Author: Paul Moore (pmoore) 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 msi.py 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) Date: 2004-12-22 14:09
Logged In: YES 
user_id=21627

Thanks for the patch, committed as msi.py 1.20 and 1.16.2.4.

I built a package at

http://www.dcl.hpi.uni-potsdam.de/home/loewis/python-
2.4.12774.msi

Please try this out, and confirm that you can, with this 
package, build extensions with cygwin, without further 
changes.
msg47399 - (view) Author: Paul Moore (pmoore) Date: 2004-12-22 20:58
Logged In: YES 
user_id=113328

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!
History
Date User Action Args
2004-12-20 23:01:50pmoorecreate