1################################################################################ 2# 3# python-jinja2 4# 5################################################################################ 6 7# Please keep in sync with package/python3-jinja2/python3-jinja2.mk 8PYTHON_JINJA2_VERSION = 2.11.3 9PYTHON_JINJA2_SOURCE = Jinja2-$(PYTHON_JINJA2_VERSION).tar.gz 10PYTHON_JINJA2_SITE = https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7 11PYTHON_JINJA2_SETUP_TYPE = setuptools 12PYTHON_JINJA2_LICENSE = BSD-3-Clause 13PYTHON_JINJA2_LICENSE_FILES = LICENSE.rst 14PYTHON_JINJA2_CPE_ID_VENDOR = pocoo 15PYTHON_JINJA2_CPE_ID_PRODUCT = jinja2 16 17# In host build, setup.py tries to download markupsafe if it is not installed 18HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe 19 20# Both asyncsupport.py and asyncfilters.py use async feature, that is 21# not available in Python 2 and some features available in Python 3.6. 22# So in both cases *.py compilation would produce compiler errors. 23# Hence remove both files after package extraction. 24ifeq ($(BR2_PACKAGE_PYTHON),y) 25define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT 26 rm $(@D)/src/jinja2/asyncsupport.py $(@D)/src/jinja2/asyncfilters.py 27endef 28 29PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT 30endif 31 32$(eval $(python-package)) 33$(eval $(host-python-package)) 34