Browse Source

Merge pull request #7582 from cotequeiroz/python-requests_PyPackage

python-requests: use PyPackage to build
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
2fafc4f67e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions
  1. +3
    -11
      lang/python/python-requests/Makefile

+ 3
- 11
lang/python/python-requests/Makefile View File

@ -30,21 +30,13 @@ define Package/python-requests
TITLE:=HTTP library for Python
URL:=http://python-requests.org/
DEPENDS:=+python +chardet +python-idna +python-urllib3 +python-certifi
VARIANT:=python
endef
define Package/python-requests/description
Requests is the only Non-GMO HTTP library for Python, safe for human consumption.
endef
define Build/Compile
$(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 PyPackage,python-requests))
$(eval $(call BuildPackage,python-requests))
$(eval $(call BuildPackage,python-requests-src))

Loading…
Cancel
Save