[ python-Bugs-1000298 ] Windows support
noreply at pgfoundry.org
noreply at pgfoundry.org
Sun Dec 2 22:36:35 UTC 2007
Bugs item #1000298, was opened at 2005-04-28 01:02
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000298&group_id=1000094
Category: BE/TEOP
Group: To do
>Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: James Pye (jwp)
Assigned to: Nobody (None)
Summary: Windows support
Initial Comment:
I'm not even sure where to begin as I do not have a Windows box. There are various issues with the build script that will surely fail.
Primarily the stupidity of ldistutil's custom build_so command to make shared objects.
Also, the PL library uses elf's _init routine to initialize Python and import the necessary libraries. There is an attempt to provide a Window's version of that, but I have little confidence that it will work as it is.
----------------------------------------------------------------------
>Comment By: James Pye (jwp)
Date: 2007-12-02 15:36
Message:
Migration to a build system using PGXS will likely fix this issue. I believe I have successfully gotten the Python extension to build, but never the Postgres extension.
----------------------------------------------------------------------
Comment By: James Pye (jwp)
Date: 2005-06-26 00:47
Message:
Logged In: YES
user_id=100779
After some review, I am not sure if ldistutils will be able to handle it easily; surely not elegantly. Both build_so and build_ext suffer from the same resulting problem, missing PostgreSQL symbols. I assume this is resolved by linking against -lpostgres, which, at first glance, appeared to be the in PG's bin directory, but failed to work. There is also some extra hackery that needs to take place somewhere in the configure function: The python lib needs to be rebuilt against mingw32.
Also, asprintf is missing from mingw32, so a workaround will be necessary(thinking PyString_FromFormat).
(Note: sources probably need to be compiled with -mdll)
All in all, ugh.
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000298&group_id=1000094
More information about the Python-general
mailing list