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.

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, 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.

Files
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 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) * (Python committer) 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 (paul.moore) * (Python committer) 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
2022-04-11 14:56:08adminsetgithub: 41350
2004-12-20 23:01:50paul.moorecreate