I finally got around to trying this (had to install Python 3 as the
primary version on a test server) and I can't seem to build it. I
modified setup.py first:
Index: setup.py
===================================================================
--- setup.py (revision 522)
+++ setup.py (working copy)
@@ -21,7 +21,7 @@
* PostgreSQL pg_config tool (usually included in the devel package)
(the Windows installer has it as part of the database server feature)
-The supported versions are Python 2.5-2.7 and PostgreSQL 8.3-9.2.
+The supported versions are Python 2.5-3.4 and PostgreSQL 8.3-9.3.
Use as follows:
python setup.py build # to build the module
@@ -40,7 +40,7 @@
import sys
-if not (2, 3) <= sys.version_info[:2] < (3, 0):
+if sys.version_info[0] < 2 or (sys.version_info[0] == 2 and
sys.version_info[1] < 3) or (sys.version_info[0] == 3 and sys.version_info[1] >
4):
raise Exception("Sorry, PyGreSQL %s"
" does not support this Python version" % version)
Then there were changes needed in pgmodule.c such as DL_EXPORT to
PyAPI_FUNC. Also, there were a bunch of "staticforward" declarations
that no longer work. A simple change to "static" seems to fix that.
There are still issues. I get a ton of warnings and errors. Anyone
else tried this yet?
--
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org IM:[email protected]
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql