matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
775 stars 392 forks source link

Diagnostics: simplify Pillow version checking #396

Closed hugovk closed 6 years ago

hugovk commented 6 years ago

Rather than PILLOW_VERSION, check the more standard __version__. PILLOW_VERSION may be removed in a future version of Pillow.

They are the same: https://github.com/python-pillow/Pillow/blob/master/src/PIL/__init__.py

The old PIL version VERSION inside Pillow has always been 1.1.7 and is irrelevant, and is going to be removed in a future version of Pillow.

I think it's very unlikely someone has installed the ~10-year-old PIL library, rather the modern Pillow fork.