-
Notifications
You must be signed in to change notification settings - Fork 184
Use more standard __version__ rather than PILLOW_VERSION #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi, thanks for the PR. |
We're considering removing How about requiring Pillow ≥ 3.4.0 in setup.py? Lines 52 to 54 in 78397ce
Pillow 3.4.0 was released in October 2016. Since 2.1.0, there have been security fixes in 2.3.1, 2.3.2, 2.5.2, 2.5.3, 2.7.0, 3.1.1, 3.1.2 and 3.3.2, so it might be wise to require something newer. https://www.cvedetails.com/product/27460/Python-Pillow.html Alternatively, how about a |
Thanks for the additional info. We don't control what version of PIL or Pillow the user has on their system, though. For example, Ubuntu 14.04 LTS ships Pillow 2.3.0 (hopefully with backported security fixes). What about have_optimizations and not (hasattr(Image, 'PILLOW_VERSION') or hasattr(Image, '__version__')) with an appropriate comment? |
That looks good. I'll update it. By the way, install_requires=[
'Pillow >= 3.4',
], Then when you |
@bgilbert Hi, any thoughts on this? Thanks! |
In Pillow 7.0.0, just released:
https://pillow.readthedocs.io/en/stable/deprecations.html#pillow-version-constant |
Update:
https://pillow.readthedocs.io/en/stable/deprecations.html#pillow-version-constant It'll probably be removed next year. Closing this PR because it's over two years old. It's still relevant so I can re-open if there's any interest in merging. Thanks! |
Let's keep this open for now. Since the constant has been deprecated, we'll need to change this eventually. Once we revisit which Linux distros still make sense to support, we'll have a better idea whether we still need the compat support or can just drop it. |
You're welcome, and thanks! |
They're both the same thing:
https://github.com/python-pillow/Pillow/blob/master/src/PIL/__init__.py