blob: dced8ade5abe72392877bdbbbdc49d261e964ca9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-greenlet
11PKG_VERSION:=3.0.2
12PKG_RELEASE:=1
13
14PYPI_NAME:=greenlet
15PKG_HASH:=1c1129bc47266d83444c85a8e990ae22688cf05fb20d7951fd2866007c2ba9bc
16
17PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
18PKG_LICENSE:=MIT
19PKG_LICENSE_FILES:=LICENSE
20# FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
21PKG_BUILD_FLAGS:=no-mips16
22
23HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
24
25include ../pypi.mk
26include $(INCLUDE_DIR)/package.mk
27include $(INCLUDE_DIR)/host-build.mk
28include ../python3-package.mk
29include ../python3-host-build.mk
30
31define Package/python3-greenlet
32 SUBMENU:=Python
33 SECTION:=lang
34 CATEGORY:=Languages
35 TITLE:=Lightweight coroutines for in-process concurrent programming
36 URL:=https://github.com/python-greenlet/greenlet
37 DEPENDS:= \
38 +python3-light \
39 +libstdcpp \
40 @!arc
41endef
42
43define Package/python3-greenlet/description
44 The greenlet package is a spin-off of Stackless
45 a version of CPython that supports micro-threads called tasklets.
46endef
47
48# FIXME: remove when GCC10 is the oldest supported compiler, or the issue goes away
49# This is required in addition to PKG_BUILD_FLAGS:=no-mips16 because otherwise MIPS16
50# flags are inherited from the Python base package (via sysconfig module)
51ifdef CONFIG_USE_MIPS16
52TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16
53endif
54
55$(eval $(call Py3Package,python3-greenlet))
56$(eval $(call BuildPackage,python3-greenlet))
57$(eval $(call BuildPackage,python3-greenlet-src))
58$(eval $(call HostBuild))