Thanks for the report. Yes, the dependencies should be made more explicit in the docs.

On 05/11/2011 12:49 AM, butt...@gmail.com wrote:
I've been trying to run the matplotlib test suite but the docs seem incomplete on this subject.

>> http://matplotlib.github.com/devel/coding_guide.html#running-the-tests
Running the tests is simple. Make sure you have nose installed and type from within Python:
import matplotlib
matplotlib.test()
To run a single test from the command line, you can provide a dot-separated path to the module and function, eg. (this is assuming the test is installed):
nosetests matplotlib.tests.test_simplification:test_clipping



Most test fail when I do what is suggested because PIL is not installed and is a requirement for all image_comparison tests.

A bit more information in the docs would be helpful for first time testers. IMO the optional dependencies required for running the test suite should be listed (possibly in the installation guide:
>> http://matplotlib.github.com/users/installing.html )
and info should be provided on how to run only the tests that don't require PIL.
There doesn't really exist a convenient way to do that, and besides the vast majority of tests are image comparison tests. The when the Python 3.x branch of matplotlib (which is designed to work with Python 2.6 forward) is merged into master, this will all be moot anyways. Since PIL doesn't yet exist on Python 3.x, the image comparison routines had to be rewritten without using PIL.

Mike

--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to