From: <jd...@us...> - 2008-12-11 03:05:08
|
Revision: 6560 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6560&view=rev Author: jdh2358 Date: 2008-12-11 03:04:59 +0000 (Thu, 11 Dec 2008) Log Message: ----------- added support for xlwt in exceltools Modified Paths: -------------- trunk/matplotlib/doc/devel/release_guide.rst trunk/matplotlib/lib/mpl_toolkits/exceltools.py Modified: trunk/matplotlib/doc/devel/release_guide.rst =================================================================== --- trunk/matplotlib/doc/devel/release_guide.rst 2008-12-11 01:10:35 UTC (rev 6559) +++ trunk/matplotlib/doc/devel/release_guide.rst 2008-12-11 03:04:59 UTC (rev 6560) @@ -46,6 +46,12 @@ * on windows, unix2dos the rc file +* make a branch of the svn revision that is released, in case we need + to do a bug fix release. Eg, from the top level of the mpl svn + tree, the one which has "branches", "tags" and "trunk", do:: + + > svn copy trunk/matplotlib branches/v0_98_4_maint + .. _release-uploading: Uploading Modified: trunk/matplotlib/lib/mpl_toolkits/exceltools.py =================================================================== --- trunk/matplotlib/lib/mpl_toolkits/exceltools.py 2008-12-11 01:10:35 UTC (rev 6559) +++ trunk/matplotlib/lib/mpl_toolkits/exceltools.py 2008-12-11 03:04:59 UTC (rev 6560) @@ -21,7 +21,15 @@ """ import copy import numpy as np -import pyExcelerator as excel + +try: + import xlwt as excel +except ImportError: + try: + import pyExcelerator as excel + except ImportError: + raise ImportError('You must install xlwt or pyExcelterator to use the exceltools') + import matplotlib.cbook as cbook import matplotlib.mlab as mlab This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |