找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3444|回复: 2

不得已求助了,ar71xx 编译 gevent,greenlet通不过。bbuntu 1404 ,Mac Yosemite

[复制链接]
编译 出现 一下提示 ubuntu 1404 和 Yosemite  同样的 错误,makefile 应该没问题 我的HG255d 编译通过。
github 源码 greenlet 0.4.2,gevent 1.0.1。

  1. #
  2. # Copyright (C) 2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #

  7. include $(TOPDIR)/rules.mk

  8. PKG_NAME:=python-greenlet
  9. PKG_VERSION:=0.4.2
  10. PKG_RELEASE:=1
  11. PKG_USE_MIPS16:= 0

  12. PKG_SOURCE:=greenlet-$(PKG_VERSION).zip
  13. PKG_SOURCE_URL:=http://pypi.python.org/packages/source/g/greenlet
  14. PKG_MD5SUM:=580a8a5e833351f7abdaedb1a877f7ac
  15. PKG_BUILD_DEPENDS:=python
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/greenlet-$(PKG_VERSION)


  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)

  19. define Package/python-greenlet
  20.   SUBMENU:=Python
  21.   SECTION:=lang
  22.   CATEGORY:=Languages
  23.   TITLE:=greenlet
  24.   URL:=https://github.com/python-greenlet/greenlet
  25.   DEPENDS:=+python
  26. endef

  27. define Package/python-greenlet/description
  28.   The greenlet package is a spin-off of Stackless, a version of CPython
  29.   that supports micro-threads called "tasklets". Tasklets run
  30.   pseudo-concurrently (typically in a single or a few OS-level threads)
  31.   and are synchronized with data exchanges on "channels".

  32.   A "greenlet", on the other hand, is a still more primitive notion of
  33.   micro-thread with no implicit scheduling; coroutines, in other
  34.   words. This is useful when you want to control exactly when your code
  35.   runs. You can build custom scheduled micro-threads on top of greenlet;
  36.   however, it seems that greenlets are useful on their own as a way to
  37.   make advanced control flow structures. For example, we can recreate
  38.   generators; the difference with Python's own generators is that our
  39.   generators can call nested functions and the nested functions can
  40.   yield values too. Additionally, you don't need a "yield" keyword. See
  41.   the example in tests/test_generator.py.

  42.   Greenlets are provided as a C extension module for the regular
  43.   unmodified interpreter.

  44.   Greenlets are lightweight coroutines for in-process concurrent
  45.   programming.
  46. endef

  47. define Build/Compile
  48. $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
  49. endef

  50. define Package/python-greenlet/install
  51.         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  52.         $(CP) \
  53.             $(PKG_INSTALL_DIR)/usr/* \
  54.             $(1)/usr/
  55. endef

  56. $(eval $(call BuildPackage,python-greenlet))
复制代码






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
我表示centos编译成功率好高
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个自己在编译时遇到,去修改package.mk中的mips16开关,不要使用mips16就可以了。现在还差gevent没有编译通过。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 23:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表