2014-11-14 15:59:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# python-jinja2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-11-17 23:34:32 +01:00
|
|
|
# Please keep in sync with package/python3-jinja2/python3-jinja2.mk
|
2021-03-08 20:59:10 +01:00
|
|
|
PYTHON_JINJA2_VERSION = 2.11.3
|
2014-11-14 15:59:52 +01:00
|
|
|
PYTHON_JINJA2_SOURCE = Jinja2-$(PYTHON_JINJA2_VERSION).tar.gz
|
2021-03-08 20:59:10 +01:00
|
|
|
PYTHON_JINJA2_SITE = https://files.pythonhosted.org/packages/4f/e7/65300e6b32e69768ded990494809106f87da1d436418d5f1367ed3966fd7
|
2014-11-14 15:59:52 +01:00
|
|
|
PYTHON_JINJA2_SETUP_TYPE = setuptools
|
2017-03-30 15:43:38 +02:00
|
|
|
PYTHON_JINJA2_LICENSE = BSD-3-Clause
|
2019-10-19 20:21:24 +02:00
|
|
|
PYTHON_JINJA2_LICENSE_FILES = LICENSE.rst
|
2021-04-05 13:14:59 +02:00
|
|
|
PYTHON_JINJA2_CPE_ID_VENDOR = pocoo
|
|
|
|
PYTHON_JINJA2_CPE_ID_PRODUCT = jinja2
|
2019-04-30 15:19:16 +02:00
|
|
|
|
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.
|
2017-07-06 10:57:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
2017-01-25 15:16:58 +01:00
|
|
|
define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
2020-02-29 02:11:55 +01:00
|
|
|
rm $(@D)/src/jinja2/asyncsupport.py $(@D)/src/jinja2/asyncfilters.py
|
2017-01-25 15:16:58 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
2017-07-06 10:57:53 +02:00
|
|
|
endif
|
2017-01-25 15:16:58 +01:00
|
|
|
|
2014-11-14 15:59:52 +01:00
|
|
|
$(eval $(python-package))
|
2015-01-28 16:14:23 +01:00
|
|
|
$(eval $(host-python-package))
|