Revision: 4710
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4710&view=rev
Author:   jswhit
Date:     2007-12-12 08:43:29 -0800 (Wed, 12 Dec 2007)

Log Message:
-----------
install dap client anyway if installed version is older.

Modified Paths:
--------------
    trunk/toolkits/basemap/setup.py

Modified: trunk/toolkits/basemap/setup.py
===================================================================
--- trunk/toolkits/basemap/setup.py     2007-12-12 16:25:57 UTC (rev 4709)
+++ trunk/toolkits/basemap/setup.py     2007-12-12 16:43:29 UTC (rev 4710)
@@ -112,11 +112,20 @@
 
 # install dap and httplib2, if not already available.
 # only a subset of dap is installed (the client, not the server)
+__dapversion__ = None
 try:
-    from dap import client
+    from dap.lib import __version__ as __dapversion__
 except ImportError:
     packages = packages + ['dap','dap.util','dap.parsers']
     package_dirs['dap'] = os.path.join('lib','dap')
+# install dap client anyway if installed version is older than
+# version provided here.
+if __dapversion__ is not None:
+    __dapversion__ = [repr(v)+'.' for v in __dapversion__]
+    __dapversion__ = ''.join(__dapversion__)[:-1]
+    if __dapversion__ < '2.2.6.2':
+        packages = packages + ['dap','dap.util','dap.parsers']
+        package_dirs['dap'] = os.path.join('lib','dap')
 try:
     import httplib2
 except ImportError:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to