[PyKDE] build.py patch against latest snapshot

Albert Chin pykde at lists.thewrittenword.com
Wed Mar 26 23:31:01 GMT 2003


If Python has been compiled with LFS support, it is *very* important
that Python.h is *always* included first to pick up the 64-bit file IO
equivalent functions. Without the patch below, PyQt doesn't build on
Solaris 2.6 or 7.

-- 
albert chin (china at thewrittenword.com)

-- snip snip
--- build.py.orig	Tue Mar 25 19:04:09 2003
+++ build.py	Wed Mar 26 14:29:01 2003
@@ -1031,8 +1006,8 @@
     ffstr = string.replace(featfile,"\\","\\\\")
 
     f.write(
-"""#include <stdio.h>
-#include <Python.h>
+"""#include <Python.h>
+#include <stdio.h>
 #include <qglobal.h>
 #include <qapplication.h>
 




More information about the PyQt mailing list