Revision: 4271
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4271&view=rev
Author: jswhit
Date: 2007-11-14 08:16:30 -0800 (Wed, 14 Nov 2007)
Log Message:
-----------
clarify error messages.
Modified Paths:
--------------
trunk/toolkits/basemap-testing/setup.py
Modified: trunk/toolkits/basemap-testing/setup.py
===================================================================
--- trunk/toolkits/basemap-testing/setup.py 2007-11-14 15:55:43 UTC (rev
4270)
+++ trunk/toolkits/basemap-testing/setup.py 2007-11-14 16:16:30 UTC (rev
4271)
@@ -46,14 +46,20 @@
# get location of geos lib from environment variable.
GEOS_dir = os.environ.get('GEOS_DIR')
if GEOS_dir is None:
- raise KeyError('please specify the location of geos library and headers
with GEOS_DIR environment variable')
+ msg = """\
+please specify the location of geos library and headers with
+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)
# 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)
if geos_version != '"2.2.3"':
- raise ValueError("""
+ 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)
+Please download and install 2.2.3 from http://geos.refractions.net.""" %
geos_version
+ raise ValueError(msg)
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