[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] problem compiling PyQt 3.8
From:       Hans-Peter Jansen <hpj () urpla ! net>
Date:       2003-08-19 14:45:43
[Download RAW message or body]

Hi Phil,

what do you think about the supplied patch. May be it's time to 
tackle the "build into independant directory" again. 

Pete

On Tuesday 19 August 2003 15:10, Markus Jais wrote:
>
> thanks. when I call make as root it works.
> didn't have the permission to copy the module to
> site-packages.
> thanks for your help and great work on PyQT

["PyQt-3.8-build-usage.diff" (text/x-diff)]

--- build-mp-orig.py	2003-08-19 16:12:21.000000000 +0200
+++ build.py	2003-08-19 16:29:00.000000000 +0200
@@ -1,3 +1,44 @@
+#! /usr/bin/env python
+"""\
+Usage:
+python %(progName)s [-h] [-a version] [-b dir] [-c] [-d dir] [-e dir]
+                [-f gccflag] [-g prog] [-i dir] [-j #] [k] [-l Qt-library]
+                [-m prog] [-n dir] [-o dir] [-p prog] [-q dir] [-r dir]
+                [-s dir] [-t dir] [-u] [-w]
+where:
+    -h             display this help message
+    -a tag         explicitly enable the qtpe module
+    -b dir         where pyuic and pylupdate will be installed
+                   [default %(platBinDir)s]
+    -c             concatenate each module's C++ source files
+    -d dir         where PyQt will be installed
+                   [default %(modDir)s]
+    -e dir         the directory containing the SIP header files
+                   [default %(sipIncDir)s]
+    -f gccflag     additional GCC flag, eg. -fno-exceptions
+    -g prog        the name of the Makefile generator
+    -i dir         the directory containing the Qt header files
+                   [default %(platQTDIRName)s%(psep)sinclude]
+    -j #           split the concatenated C++ source files into # pieces
+                   [default 1]
+    -k             build the PyQt modules as static libraries
+    -l Qt-library  explicitly specify the type of Qt library, either:
+                   qt, qt-mt, qt-mtedu or qte
+    -m prog        the name of the Make program [default %(platMake)s]
+    -n dir         the directory containing the QScintilla header files
+                   [default %(platQTDIRName)s%(psep)sinclude]
+    -o dir         the directory containing the QScintilla library
+                   [default %(platQTDIRName)s%(psep)slib]
+    -p prog        the name of the SIP code generator [default sip]
+    -q dir         the Qt base directory [default %(platQTDIRName)s]
+    -r dir         the directory containing the Qt library
+                   [default %(platQTDIRName)s%(psep)slib]
+    -s dir         the directory containing the SIP module
+    -t dir         the directory containing the Python library directories
+                   [default %(platPyLibDir)s]
+    -u             build with debugging symbols
+    -w             enable the use of Python 1.5.x under Windows
+"""
 # Copyright (c) 2003
 #   Riverbank Computing Limited <info@riverbankcomputing.co.uk>
 #
@@ -64,39 +105,16 @@
 qpeTag = None
 licType = None
 gccFlags = []
-
+psep = os.sep
 
 def usage(rcode = 2):
     """Display a usage message and exit.
 
     rcode is the return code passed back to the calling process.
     """
-    print "Usage:"
-    print "    %s [-h] [-a version] [-b dir] [-c] [-d dir] [-e dir] [-f gccflag] [-g \
prog] [-i dir] [-j #] [k] [-l Qt-library] [-m prog] [-n dir] [-o dir] [-p prog] [-q \
                dir] [-r dir] [-s dir] [-t dir] [-u] [-w]" % (progName)
-    print "where:"
-    print "    -h             display this help message"
-    print "    -a tag         explicitly enable the qtpe module"
-    print "    -b dir         where pyuic and pylupdate will be installed [default \
                %s]" % (platBinDir)
-    print "    -c             concatenate each module's C++ source files"
-    print "    -d dir         where PyQt will be installed [default %s]" % (modDir)
-    print "    -e dir         the directory containing the SIP header files [default \
                %s]" % (sipIncDir)
-    print "    -f gccflag     additional GCC flag, eg. -fno-exceptions"
-    print "    -g prog        the name of the Makefile generator"
-    print "    -i dir         the directory containing the Qt header files [default \
                %s%sinclude]" % (platQTDIRName,os.sep)
-    print "    -j #           split the concatenated C++ source files into # pieces \
                [default 1]"
-    print "    -k             build the PyQt modules as static libraries"
-    print "    -l Qt-library  explicitly specify the type of Qt library, either qt, \
                qt-mt, qt-mtedu or qte"
-    print "    -m prog        the name of the Make program [default %s]" % \
                (platMake)
-    print "    -n dir         the directory containing the QScintilla header files \
                [default %s%sinclude]" % (platQTDIRName, os.sep)
-    print "    -o dir         the directory containing the QScintilla library \
                [default %s%slib]" % (platQTDIRName, os.sep)
-    print "    -p prog        the name of the SIP code generator [default sip]"
-    print "    -q dir         the Qt base directory [default %s]" % (platQTDIRName)
-    print "    -r dir         the directory containing the Qt library [default \
                %s%slib]" % (platQTDIRName,os.sep)
-    print "    -s dir         the directory containing the SIP module"
-    print "    -t dir         the directory containing the Python library \
                directories [default %s]" % (platPyLibDir)
-    print "    -u             build with debugging symbols"
-    print "    -w             enable the use of Python 1.5.x under Windows"
-
+    if sys.platform != "win32":
+        print "\nNOTE: You have to be root to successfully build PyQt by now!\n"
+    print __doc__ % globals()
     sys.exit(rcode)
 
 


_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic