lbry-android-sdk/p4a/pythonforandroid/recipes/pil/__init__.py

24 lines
760 B
Python
Raw Permalink Normal View History

2022-12-02 21:15:34 +01:00
from pythonforandroid.recipes.Pillow import PillowRecipe
from pythonforandroid.logger import warning
2017-08-13 03:24:00 +02:00
2022-12-02 21:15:34 +01:00
class PilRecipe(PillowRecipe):
"""A transparent wrapper around the Pillow recipe, it should build
Pillow automatically as if "pillow" were specified in the
requirements.
"""
2022-12-02 21:15:34 +01:00
name = 'Pillow' # ensures the Pillow recipe directory is used where necessary
2022-12-02 21:15:34 +01:00
conflicts = ['pillow']
2022-12-02 21:15:34 +01:00
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().build_arch(arch)
2022-12-02 21:15:34 +01:00
recipe = PilRecipe()