Use Pillow, unless PIL is already there

This commit is contained in:
Laurent Bachelier 2013-06-06 13:17:37 +02:00
commit b1bd2e549a

View file

@ -162,11 +162,16 @@ requirements = [
'lxml',
'feedparser',
'mechanize',
'PIL',
'gdata',
'python-dateutil',
'PyYAML',
]
try:
import Image # NOQA
except ImportError:
requirements.append('Pillow')
else:
requirements.append('PIL')
if sys.version_info[0] > 2:
print >>sys.stderr, 'Python 3 is not supported.'