From: Radek Czajka Date: Tue, 16 Jul 2013 09:41:45 +0000 (+0200) Subject: Use Pillow-compatible imports. X-Git-Tag: 1.7~137 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/85ab1e2d4b363dc747eacda08fa254586905cf25?hp=-c Use Pillow-compatible imports. --- 85ab1e2d4b363dc747eacda08fa254586905cf25 diff --git a/librarian/cover.py b/librarian/cover.py index a37b911..8b770ca 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -4,7 +4,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # import re -import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance +from PIL import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance from StringIO import StringIO from librarian import get_resource, OutputFile, URLOpener diff --git a/setup.py b/setup.py index 51003ef..b20040a 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,10 @@ setup( package_data={'librarian': ['xslt/*.xslt', 'epub/*', 'mobi/*', 'pdf/*', 'fb2/*', 'fonts/*', 'res/*'] + whole_tree(os.path.join(os.path.dirname(__file__), 'librarian'), 'font-optimizer')}, include_package_data=True, - install_requires=['lxml>=2.2'], + install_requires=[ + 'lxml>=2.2', + 'Pillow', + ], scripts=['scripts/book2html', 'scripts/book2txt', 'scripts/book2epub',