Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

milkman now depends on PIL #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Wilfred
Copy link
Contributor

@Wilfred Wilfred commented May 8, 2013

As of commit 01bdee2, importing
milkman throws ImportError if PIL isn't installed:

In [1]: from milkman.dairy import milkman
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/home/wilfred/.envs/drawbridge/lib/python2.7/site-packages/django/core/management/commands/shell.pyc in <module>()
----> 1 from milkman.dairy import milkman

/home/wilfred/src/milkman/milkman/dairy.py in <module>()
      2 from django.db.models.fields.related import RelatedField
      3 
----> 4 from milkman import generators
      5 
      6 

/home/wilfred/src/milkman/milkman/generators.py in <module>()
      9 from django.core.files.storage import DefaultStorage
     10 
---> 11 from PIL import Image, ImageDraw
     12 
     13 

ImportError: No module named PIL

This commit adds PIL as an installation dependency in setup.py.

As of commit 01bdee2, importing
milkman throws ImportError if PIL isn't installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant