b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | include $(TOPDIR)/rules.mk
|
| 2 |
|
| 3 | PKG_NAME:=python-gevent
|
| 4 | PKG_VERSION:=23.9.1
|
| 5 | PKG_RELEASE:=1
|
| 6 |
|
| 7 | PYPI_NAME:=gevent
|
| 8 | PKG_HASH:=72c002235390d46f94938a96920d8856d4ffd9ddf62a303a0d7c118894097e34
|
| 9 |
|
| 10 | PKG_MAINTAINER:=Andy Syam <privasisource@gmail.com>
|
| 11 | PKG_LICENSE:=MIT
|
| 12 | PKG_LICENSE_FILES:=LICENSE
|
| 13 |
|
| 14 | PKG_BUILD_FLAGS:=no-mips16
|
| 15 | PKG_BUILD_DEPENDS:=python-cffi/host python-greenlet/host python-cython/host
|
| 16 |
|
| 17 | include ../pypi.mk
|
| 18 | include $(INCLUDE_DIR)/package.mk
|
| 19 | include ../python3-package.mk
|
| 20 |
|
| 21 | PYTHON3_PKG_SETUP_VARS:= \
|
| 22 | GEVENTSETUP_EMBED=0 \
|
| 23 | GEVENTSETUP_EMBED_LIBEV=0 \
|
| 24 | GEVENTSETUP_EMBED_CARES=0
|
| 25 |
|
| 26 | define Package/python3-gevent
|
| 27 | SUBMENU:=Python
|
| 28 | SECTION:=lang
|
| 29 | CATEGORY:=Languages
|
| 30 | TITLE:=Coroutine-based network library
|
| 31 | URL:=https://github.com/gevent/gevent
|
| 32 | DEPENDS:= \
|
| 33 | +python3-light \
|
| 34 | +python3-cffi \
|
| 35 | +python3-greenlet \
|
| 36 | +python3-zope-interface \
|
| 37 | +libcares \
|
| 38 | +libev \
|
| 39 | +libuv
|
| 40 | endef
|
| 41 |
|
| 42 | define Package/python3-gevent/description
|
| 43 | gevent is a coroutine -based Python networking library that uses greenlet
|
| 44 | to provide a high-level synchronous API on top of the libev or libuv event loop.
|
| 45 | endef
|
| 46 |
|
| 47 | $(eval $(call Py3Package,python3-gevent))
|
| 48 | $(eval $(call BuildPackage,python3-gevent))
|
| 49 | $(eval $(call BuildPackage,python3-gevent-src))
|