求救,如何在 widora 內安裝 python module "py_sg"?

如何在 widora 內安裝 python module “py_sg”?

https://pypi.org/project/py_sg/

在package目录下增加文件夹 里面放Makefile,增加模块的路径啥的,编译的时候选中新增的模块,再编译的时候会自动下载

贴一个其他的python模块 你可以参考一下

include $(TOPDIR)/rules.mk
PKG_NAME:=Twisted
PKG_VERSION:=14.0.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://pypi.python.org/packages/source/T/Twisted/
PKG_MD5SUM:=8379eb15601d6b7543a189594d3fed8f

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

define Package/python-twisted
  SECTION:=language-python
  CATEGORY:=Languages
  SUBMENU:=Python
  TITLE:=python-twisted
  URL:=https://twistedmatrix.com/
  DEPENDS:=+python +zope-interface
  MAINTAINER:=Ondrej Mikle <ondrej.mikle@nic.cz>
endef

define Package/python-twisted/description
Twisted is a network engine used to produce highly unreadable code.
endef

define Build/Compile
        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
endef

define Package/python-twisted/install
        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
        $(CP) \
                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
                $(1)$(PYTHON_PKG_DIR)
endef

$(eval $(call BuildPackage,python-twisted))