From: David H. <df...@fo...> - 2006-12-22 08:57:00
|
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 -IC:\Python25\PC/Tclibpqmodule.c /Fobuild\temp.win32-2.5\Release\libpqmodule.obj libpqmodule.c libpqmodule.c(1) : warning C4274: #ident ignored; see documentation for #pragma comment(exestr, 'string') 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.c 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 distribution. What can I do to achieve this build, which is the last step in my migration to Python 2.5? Regards, David Hughes |