On Monday 16 July 2007 4:38 pm, Matteo Bertini wrote:
Hello,

I've found that there is almost no way to explicitly exclude the
qsci-api installation.

If one provide no option, but configure.py finds a default dir (quite
common under linux) it tries to install apis there.

I suggest to activate the install in the default dir only if --qsci-api
is provided. (patch follow)

People will forget to pass the flag and complain that eric doesn't have up to date API data.

I've no problem with a patch that adds a "don't install the API file even if the directory exists" flag.

Phil
Ok, this should replicate the current behaviour and add a --no-qsci-api option to skip the api installation.

--
Matteo Bertini

Index: configure.py
===================================================================
--- configure.py	(revisione 13508)
+++ configure.py	(copia locale)
@@ -182,6 +182,8 @@
     g.add_option("-a", "--qsci-api", action="store_true", default=None,
             dest="api", help="install the PyQt API file for QScintilla "
             "[default: only if QScintilla installed]")
+    g.add_option("--no-qsci-api", action="store_false", default=None,
+            dest="api", help="do not install PyQt API file for QScintilla")
     g.add_option("-n", "--qsci-api-destdir", action="callback", dest="qscidir",
             metavar="DIR", callback=store_abspath, type="string", help="where "
             "the PyQt API file for QScintilla will be installed [default: "
@@ -1655,7 +1657,8 @@
     if opts.qscidir:
         # An explicit directory implies installing the API file.
         opts.api = 1
-    else:
+    elif opts.api != False:
+        # If no explicit dir is provided, use the default one
         opts.qscidir = os.path.join(qt_datadir, "qsci")

         if os.path.isdir(opts.qscidir):
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to