Revision: 4272
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4272&view=rev
Author: jswhit
Date: 2007-11-14 08:17:55 -0800 (Wed, 14 Nov 2007)
Log Message:
-----------
just raise a SystemExit instead of ValueError if geos lib not found.
Modified Paths:
--------------
trunk/toolkits/basemap-testing/setup.py
Modified: trunk/toolkits/basemap-testing/setup.py
===================================================================
--- trunk/toolkits/basemap-testing/setup.py 2007-11-14 16:16:30 UTC (rev
4271)
+++ trunk/toolkits/basemap-testing/setup.py 2007-11-14 16:17:55 UTC (rev
4272)
@@ -51,7 +51,8 @@
the GEOS_DIR environment variable. For example if libgeos_c
is installed in /usr/local/lib, and geos_c.h is installed in
/usr/local/include, set GEOS_DIR to /usr/local."""
- raise ValueError(msg)
+ print msg
+ raise SystemExit(1)
# check that header geos_c.h is in GEOS_dir/include,
# and that the version number in the header file is 2.2.3.
geos_version = check_geosversion(GEOS_dir)
@@ -59,7 +60,8 @@
msg = """\
geos library version 2.2.3 is required, you have version %s.
Please download and install 2.2.3 from http://geos.refractions.net.""" %
geos_version
- raise ValueError(msg)
+ print msg
+ raise SystemExit(1)
else:
geos_include_dirs=[os.path.join(GEOS_dir,'include'),numpy.get_include()]
geos_library_dirs=[os.path.join(GEOS_dir,'lib')]
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins