File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
pythonforandroid/recipes/pil Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
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 ()
You can’t perform that action at this time.
0 commit comments