Hello,
while preparing a test debian pacakge with mpl 1.0rc1, I noticed
doc/make.py clean fails if the directories to remove are missing.
The simple attached patch (svn diff against tr...@8480) resolves it;
it might also be nice to wrap the os.remove() calls below in a try: ..
except OSError: pass instead of checking existence, to avoid race
conditions and so (it's easier to ask for forgiveness than
permission).
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
Index: doc/make.py
===================================================================
--- doc/make.py (revision 8480)
+++ doc/make.py (working copy)
@@ -61,8 +61,8 @@
print 'latex build has not been tested on windows'
def clean():
- shutil.rmtree("build")
- shutil.rmtree("examples")
+ shutil.rmtree("build", ignore_errors=True)
+ shutil.rmtree("examples", ignore_errors=True)
for pattern in ['mpl_examples/api/*.png',
'mpl_examples/pylab_examples/*.png',
'mpl_examples/pylab_examples/*.pdf',
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel