Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 751cfaf

Browse files
committed
added support for xlwt in exceltools
svn path=/trunk/matplotlib/; revision=6560
1 parent 077fb39 commit 751cfaf

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

doc/devel/release_guide.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ Packaging
4646

4747
* on windows, unix2dos the rc file
4848

49+
* make a branch of the svn revision that is released, in case we need
50+
to do a bug fix release. Eg, from the top level of the mpl svn
51+
tree, the one which has "branches", "tags" and "trunk", do::
52+
53+
> svn copy trunk/matplotlib branches/v0_98_4_maint
54+
4955
.. _release-uploading:
5056

5157
Uploading

lib/mpl_toolkits/exceltools.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
"""
2222
import copy
2323
import numpy as np
24-
import pyExcelerator as excel
24+
25+
try:
26+
import xlwt as excel
27+
except ImportError:
28+
try:
29+
import pyExcelerator as excel
30+
except ImportError:
31+
raise ImportError('You must install xlwt or pyExcelterator to use the exceltools')
32+
2533
import matplotlib.cbook as cbook
2634
import matplotlib.mlab as mlab
2735

0 commit comments

Comments
 (0)