mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
python-jinja2: don't remove async files for Python 3
The needed functionality is already included into Python 3.6.x, so these files can be now compiled without errors. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
afe1f5cd56
commit
845d3576a5
@ -17,11 +17,13 @@ HOST_PYTHON_JINJA2_DEPENDENCIES = host-python-markupsafe
|
|||||||
# not available in Python 2 and some features available in Python 3.6.
|
# not available in Python 2 and some features available in Python 3.6.
|
||||||
# So in both cases *.py compilation would produce compiler errors.
|
# So in both cases *.py compilation would produce compiler errors.
|
||||||
# Hence remove both files after package extraction.
|
# Hence remove both files after package extraction.
|
||||||
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||||
define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
define PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
||||||
rm $(@D)/jinja2/asyncsupport.py $(@D)/jinja2/asyncfilters.py
|
rm $(@D)/jinja2/asyncsupport.py $(@D)/jinja2/asyncfilters.py
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
PYTHON_JINJA2_POST_EXTRACT_HOOKS = PYTHON_JINJA2_REMOVE_ASYNC_SUPPORT
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(python-package))
|
$(eval $(python-package))
|
||||||
$(eval $(host-python-package))
|
$(eval $(host-python-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user