2014-11-14 15:59:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-jinja2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-02-19 20:12:17 +01:00
|
|
|
PYTHON_JINJA2_VERSION = 2.9.5
|
2014-11-14 15:59:52 +01:00
|
|
|
PYTHON_JINJA2_SOURCE = Jinja2-$(PYTHON_JINJA2_VERSION).tar.gz
|
2017-02-19 20:12:17 +01:00
|
|
|
PYTHON_JINJA2_SITE = https://pypi.python.org/packages/71/59/d7423bd5e7ddaf3a1ce299ab4490e9044e8dfd195420fc83a24de9e60726
|
2014-11-14 15:59:52 +01:00
|
|
|
PYTHON_JINJA2_SETUP_TYPE = setuptools
|
|
|
|
PYTHON_JINJA2_LICENSE = BSD-3c
|
|
|
|
PYTHON_JINJA2_LICENSE_FILES = LICENSE
|
2015-01-28 16:14:23 +01:00
|
|
|
# In host build, setup.py tries to download markupsafe if it is not installed
|
|
|
|
HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe
|
2014-11-14 15:59:52 +01:00
|
|
|
|
2017-01-25 15:16:58 +01:00
|
|
|
# Both asyncsupport.py and asyncfilters.py use async feature, that is
|
|
|
|
# not available in Python 2 and some features available in Python 3.6.
|
|
|
|
# So in both cases *.py compilation would produce compiler errors.
|
|
|
|
# Hence remove both files after package extraction.
|
|
|
|
define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
|
|
|
rm $(@D)/jinja2/asyncsupport.py $(@D)/jinja2/asyncfilters.py
|
|
|
|
endef
|
|
|
|
|
|
|
|
PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
|
|
|
|
2014-11-14 15:59:52 +01:00
|
|
|
$(eval $(python-package))
|
2015-01-28 16:14:23 +01:00
|
|
|
$(eval $(host-python-package))
|