We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd3d18f commit 959c2eaCopy full SHA for 959c2ea
1 file changed
pythonforandroid/recipes/pil/__init__.py
@@ -0,0 +1,22 @@
1
+from pythonforandroid.recipes.Pillow import PillowRecipe
2
+from pythonforandroid.logger import warning
3
+
4
+class PilRecipe(PillowRecipe):
5
+ """A transparent wrapper around the Pillow recipe, it should build
6
+ Pillow automatically as if "pillow" were specified in the
7
+ requirements.
8
+ """
9
10
+ name = 'Pillow' # ensures the Pillow recipe directory is used where necessary
11
12
+ conflicts = ['pillow']
13
14
+ def build_arch(self, arch):
15
+ warning('PIL is no longer supported, building Pillow instead. '
16
+ 'This should be a drop-in replacement.')
17
+ warning('It is recommended to change "pil" to "pillow" in your requirements, '
18
+ 'to ensure future compatibility')
19
+ super(PilRecipe, self).build_arch(arch)
20
21
22
+recipe = PilRecipe()
0 commit comments