This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
[ANN] Python header patched to build modules with mingw32
- To: cygwin@sourceware.cygnus.com
- Subject: [ANN] Python header patched to build modules with mingw32
- From: Paul Sokolovsky <paul-ml@is.lg.ua>
- Date: Thu, 25 Mar 1999 14:43:02 +0200
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Priority: Normal
- Reply-To: Paul Sokolovsky <paul-ml@is.lg.ua>
- Sender: cygwin-owner@sourceware.cygnus.com
I packaged patched headers from Python 1.5.2b2, script to produce import
library, and sample, all allowing/showing building DLL modules for
Python/win32 with mingw32 target.
http://www.infoservice.lg.ua/~paul/devel/python_headers.html
------------
This package contains patched headers and scripts to produce import
library required to compile dll modules for Python 1.5.2b2 with
mingw32 target (http://www.xralith.wisc.edu/~khan/software/gnu-win32/).
'Python' subdir contains headers, put it (whole subdir) into your
include direcory (e.g., /usr/include).
'lib' subdir contains def file and Makefile to produce implib from it
(dlltool required). Def file as of Python 1.5.1, it was dropped in 1.5.2,
van Rossum suggests writing Python script to generate it from headers %) .
When built, drop it to your lib dir (e.g., /usr/lib).
'sample' contains sample from core Python source.
Changes to headers was made are as follows (see diffs):
* Added config.h subpart for gnu-win32 compilers (those defining both
__GCC__ and _WIN32).
* Some of structural types are marked as dllimported, this is required
for current egcs, or else it gives warnings (C mode) or crashes
(C++ mode) when referencing dllimported variable of that type. Note that
only _some_ of all types was marked, so if you get described behaviour,
chase offending struct. (I don't mark them all because not all should
be, and because it might bring other problems).
------------
Best regards,
Paul mailto:paul-ml@is.lg.ua
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com