| 
     
      
      
      From: Christoph G. <cg...@uc...> - 2011-10-06 22:24:00
      
     
   | 
On 10/6/2011 10:58 AM, Christoph Gohlke wrote:
>
>
> On 10/6/2011 10:42 AM, Benjamin Root wrote:
>>
>>
>> On Thursday, October 6, 2011, John Hunter<jd...@gm...
>> <mailto:jd...@gm...>>  wrote:
>>>   On Thu, Oct 6, 2011 at 11:43 AM, Christoph Gohlke<cg...@uc...
>> <mailto:cg...@uc...>>  wrote:
>>>
>>>> Is it really intended to include ~36 MB of tests/baseline_images in the
>>>> binary distributions for end users?
>>>
>>>   I'm OK with excluding the test images from the binaries.  Does anyone
>> disagree?
>>
>> What happens if someone tries to test without having the baseline
>> images?  I guess it hasn't been an issue before.
>
> The baseline images were included in previous binary distributions but
> they were much smaller (~10 MB uncompressed). Mpl 1.1 includes ~19.5 MB
> new test_delaunay images.
>
> The mpl 1.1 installers with baseline images are around 30 MB, vs. ~4.2
> MB without.
>
> There's a switch in setup.py:
>
> if 0:
>       # TODO: exclude these when making release?
>       baseline_images = glob.glob(os.path.join('lib','matplotlib','tests',
>                                                'baseline_images','*','*'))
>
>>
>>>
>>>> Do you need eggs (not tested; without pytz and dateutil)?
>>>
>>>   I'm OK w/ not shipping eggs.  Someone will probably ask for them, though.
>>
>> Have we shipped eggs before?
>
> Yes, on request for mpl 1.0.1
> <https://sourceforge.net/mailarchive/message.php?msg_id=25760379>.
>
> Christoph
>
I am ready to upload installers without the baseline images. How about a 
separate installer for matplotlib.tests?
# setup_tests.py
from distutils.core import setup
for line in open('lib/matplotlib/__init__.py').readlines():
     if (line.startswith('__version__')):
         exec(line.strip())
setup(name="matplotlib-tests",
       version=__version__,
       description="Tests for matplotlib",
       author="John D. Hunter",
       author_email="jd...@gm...",
       url="http://matplotlib.sourceforge.net",
       packages = ['matplotlib.tests'],
       package_dir = {'': 'lib'},
       package_data = {'matplotlib.tests':['baseline_images/*/*']},
       platforms='any'
       )
 |