mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 01:58:35 +04:00
Merge pull request #7582 from cotequeiroz/python-requests_PyPackage
python-requests: use PyPackage to build
This commit is contained in:
@@ -30,21 +30,13 @@ define Package/python-requests
|
|||||||
TITLE:=HTTP library for Python
|
TITLE:=HTTP library for Python
|
||||||
URL:=http://python-requests.org/
|
URL:=http://python-requests.org/
|
||||||
DEPENDS:=+python +chardet +python-idna +python-urllib3 +python-certifi
|
DEPENDS:=+python +chardet +python-idna +python-urllib3 +python-certifi
|
||||||
|
VARIANT:=python
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-requests/description
|
define Package/python-requests/description
|
||||||
Requests is the only Non-GMO HTTP library for Python, safe for human consumption.
|
Requests is the only Non-GMO HTTP library for Python, safe for human consumption.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
$(eval $(call PyPackage,python-requests))
|
||||||
$(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/python-requests/install
|
|
||||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
|
||||||
$(CP) \
|
|
||||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
|
||||||
$(1)$(PYTHON_PKG_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,python-requests))
|
$(eval $(call BuildPackage,python-requests))
|
||||||
|
$(eval $(call BuildPackage,python-requests-src))
|
||||||
|
|||||||
Reference in New Issue
Block a user