There isn't a pre-built binary for Python 2.5 so I tried building from
the source tarball.
It failed initially because the C compiler didn't find Python.h
building 'pyPgSQL.libpq.libpq' extension
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c
/nologo /Ox /MD /W3 /GX /DNDEBUG -I -IC:\Python25\include
libpqmodule.c(1) : warning C4274: #ident ignored; see documentation for
libpqmodule.c(78) : fatal error C1083: Cannot open include file:
'Python.h': No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\cl.exe"' failed with exit status 2
When I remove the first "-I" parameter it continues a little further but
then fails to find libpq-fe.h that is referenced in libpqmodule.h
libpqmodule.h(29) : fatal error C1083: Cannot open include file:
'libpq-fe.h': No such file or directory
libpq-fe.h and other indirectly referenced files are not in the source
What can I do to achieve this build, which is the last step in my
migration to Python 2.5?
David Hughes wrote:
> There isn't a pre-built binary for Python 2.5 so I tried building from
> the source tarball.
> libpq-fe.h and other indirectly referenced files are not in the source
OK, as usual, 10 seconds after posting my brain slipped into gear, and I
downloaded and found these files in the source distribution of
Get latest updates about Open Source Projects, Conferences and News.