Use Pillow, unless PIL is already there
This commit is contained in:
parent
7f09092b37
commit
b1bd2e549a
1 changed files with 6 additions and 1 deletions
7
setup.py
7
setup.py
|
|
@ -162,11 +162,16 @@ requirements = [
|
||||||
'lxml',
|
'lxml',
|
||||||
'feedparser',
|
'feedparser',
|
||||||
'mechanize',
|
'mechanize',
|
||||||
'PIL',
|
|
||||||
'gdata',
|
'gdata',
|
||||||
'python-dateutil',
|
'python-dateutil',
|
||||||
'PyYAML',
|
'PyYAML',
|
||||||
]
|
]
|
||||||
|
try:
|
||||||
|
import Image # NOQA
|
||||||
|
except ImportError:
|
||||||
|
requirements.append('Pillow')
|
||||||
|
else:
|
||||||
|
requirements.append('PIL')
|
||||||
|
|
||||||
if sys.version_info[0] > 2:
|
if sys.version_info[0] > 2:
|
||||||
print >>sys.stderr, 'Python 3 is not supported.'
|
print >>sys.stderr, 'Python 3 is not supported.'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue