[PyKDE] suggestion for configure.py in PyQt-4.0beta1
Glen W. Mabey
Glen.Mabey at swri.org
Thu May 25 15:32:55 BST 2006
phil at riverbankcomputing.co.uk wrote:
> On Wednesday 24 May 2006 7:04 pm, Glen W. Mabey wrote:
> > When employing the -d and -v flags, does the following seem reasonable?
> > It makes it so that some pretty standard operations have a better chance
> > of succeeding, like `import pyqtconfig'.
> >
> > Glen
> >
> >
> > *** configure.py.orig Wed May 24 11:16:13 2006
> > --- configure.py Wed May 24 11:17:09 2006
> > ***************
> > *** 994,1000 ****
> > elif opt == "-c":
> > opt_concat = 1
> > elif opt == "-d":
> > ! opt_pyqtmoddir = os.path.abspath(arg)
> > elif opt == "-i":
> > opt_vendorcheck = 1
> > elif opt == "-j":
> > --- 994,1000 ----
> > elif opt == "-c":
> > opt_concat = 1
> > elif opt == "-d":
> > ! opt_pyqtmoddir = os.path.join(os.path.abspath(arg), "PyQt4")
> > elif opt == "-i":
> > opt_vendorcheck = 1
> > elif opt == "-j":
> > ***************
> > *** 1015,1021 ****
> > elif opt == "-u":
> > opt_debug = 1
> > elif opt == "-v":
> > ! opt_pyqtsipdir = os.path.abspath(arg)
> > elif opt == "-w":
> > opt_verbose = 1
> >
> > --- 1015,1021 ----
> > elif opt == "-u":
> > opt_debug = 1
> > elif opt == "-v":
> > ! opt_pyqtsipdir = os.path.join(os.path.abspath(arg), "PyQt4")
> > elif opt == "-w":
> > opt_verbose = 1
>
> The whole point of flags like these is to give the user complete control over
> the configuration. There is no point in then imposing restrictions.
Well, my reasoning was:
1) In its standard usage, the preliminary directory PyQt4/ actually
forms part of the module hierarchy,
2) Without it, nothing really works, and
3) Straight-across compatibility with previous versions of PyQt -- what
worked there would then work with PyQt4. That was the case with me
as I was migrating to PyQt4, and I was surprised when that option
raised an issue that took some investigating on my part to figure it
out.
But, whatever. I'm just glad that PyQt is available, and trying to be
helpful in the process.
Best Regards,
Glen Mabey
More information about the PyQt
mailing list