forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
23 lines (16 loc) · 775 Bytes
/
__init__.py
File metadata and controls
23 lines (16 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from pythonforandroid.recipes.Pillow import PillowRecipe
from pythonforandroid.logger import warning
class PilRecipe(PillowRecipe):
"""A transparent wrapper around the Pillow recipe, it should build
Pillow automatically as if "pillow" were specified in the
requirements.
"""
name = 'Pillow' # ensures the Pillow recipe directory is used where necessary
conflicts = ['pillow']
def build_arch(self, arch):
warning('PIL is no longer supported, building Pillow instead. '
'This should be a drop-in replacement.')
warning('It is recommended to change "pil" to "pillow" in your requirements, '
'to ensure future compatibility')
super(PilRecipe, self).build_arch(arch)
recipe = PilRecipe()