2 # Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=python-greenlet
15 PKG_HASH
:=719e169c79255816cdcf6dccd9ed2d089a72a9f6c42273aae12d55e8d35bdcf8
17 PKG_MAINTAINER
:=Jan Pavlinec
<jan.pavlinec@nic.cz
>
19 PKG_LICENSE_FILES
:=LICENSE
20 # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
24 include $(INCLUDE_DIR
)/package.mk
25 include ..
/python3-package.mk
27 define Package
/python3-greenlet
31 TITLE
:=Lightweight coroutines for in-process concurrent programming
32 URL
:=https
://github.com
/python-greenlet
/greenlet
39 define Package
/python3-greenlet
/description
40 The greenlet package is a spin-off of Stackless
41 a version of CPython that supports micro-threads called tasklets.
44 # FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
45 # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16
46 # flags are inherited from the Python base package (via sysconfig module)
47 ifdef CONFIG_USE_MIPS16
48 TARGET_CFLAGS
+= -mno-mips16
-mno-interlink-mips16
51 $(eval
$(call Py3Package
,python3-greenlet
))
52 $(eval
$(call BuildPackage
,python3-greenlet
))
53 $(eval
$(call BuildPackage
,python3-greenlet-src
))