use Pillow instead of PIL; Fix Image import
This commit is contained in:
parent
861f340b81
commit
66526863ca
2 changed files with 7 additions and 3 deletions
|
@ -27,8 +27,12 @@ $Id$
|
|||
from logging import getLogger
|
||||
try:
|
||||
import Image
|
||||
except ImportError:
|
||||
getLogger('Asset Manager').warn('Python Imaging Library could not be found.')
|
||||
except:
|
||||
try:
|
||||
from PIL import Image
|
||||
except:
|
||||
getLogger('Asset Manager').warn('Python Imaging Library '
|
||||
'could not be found.')
|
||||
|
||||
from zope.interface import implements
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -20,7 +20,7 @@ setup(name='cybertools',
|
|||
install_requires=[
|
||||
# -*- Extra requirements: -*-
|
||||
'lxml',
|
||||
'PIL',
|
||||
'Pillow',
|
||||
'zope.app.catalog',
|
||||
'zope.app.file',
|
||||
'zope.app.intid',
|
||||
|
|
Loading…
Add table
Reference in a new issue