[Matplotlib-devel] tests+baseline images no longer installed by default

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Matplotlib-devel] tests+baseline images no longer installed by default

tcaswell
Folks (particularly down-stream packagers),

As of https://github.com/matplotlib/matplotlib/pull/7757 (which is currently on master and I am in the process of backporting for 2.0) the test images are not installed by default.  We already are stripping the test images from the official wheels and conda-forge packages.  This change greatly reduces the resultant file size :


23:41 $ python setup.py sdist bdist_wheel
23:41 $ du -hs dist/* 
11M     dist/matplotlib-2.0.0rc2+60.ge83e108ef-cp36-cp36m-linux_x86_64.whl
51M     dist/matplotlib-2.0.0rc2+60.ge83e108ef.tar.gz


To restore installing the tests and images have a `setup.cfg` with

[packages]
tests = True
toolkit_tests = True

in the source directory at build / install time.

A consequence of this change is that by default `pip install ./` or `setup.py install` will not install the tests (and hence `python run_tests.py` will not work).  We suggest using `pip install -v -e ./` or using a `setup.cfg` file.

Tom


_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Loading...