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
|
from logging import getLogger
|
||||||
try:
|
try:
|
||||||
import Image
|
import Image
|
||||||
except ImportError:
|
except:
|
||||||
getLogger('Asset Manager').warn('Python Imaging Library could not be found.')
|
try:
|
||||||
|
from PIL import Image
|
||||||
|
except:
|
||||||
|
getLogger('Asset Manager').warn('Python Imaging Library '
|
||||||
|
'could not be found.')
|
||||||
|
|
||||||
from zope.interface import implements
|
from zope.interface import implements
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -20,7 +20,7 @@ setup(name='cybertools',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
# -*- Extra requirements: -*-
|
# -*- Extra requirements: -*-
|
||||||
'lxml',
|
'lxml',
|
||||||
'PIL',
|
'Pillow',
|
||||||
'zope.app.catalog',
|
'zope.app.catalog',
|
||||||
'zope.app.file',
|
'zope.app.file',
|
||||||
'zope.app.intid',
|
'zope.app.intid',
|
||||||
|
|
Loading…
Add table
Reference in a new issue