summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-12-06 08:53:17 +0200
committerGitHub <noreply@github.com>2018-12-06 08:53:17 +0200
commit2fafc4f67e214d400ceaca85ef8cf532a77fcfea (patch)
tree26edc0a5550f3e51e978bc8270fc2db0eec47d67 /lang/python
parentba75b83a5ff2f954d5af3f404f271e76a22eaa9c (diff)
parentb29881b853105481620dc18f43b0f50138ca937a (diff)
Merge pull request #7582 from cotequeiroz/python-requests_PyPackage
python-requests: use PyPackage to build
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/python-requests/Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/lang/python/python-requests/Makefile b/lang/python/python-requests/Makefile
index 0ce0e4d63..9723f60f0 100644
--- a/lang/python/python-requests/Makefile
+++ b/lang/python/python-requests/Makefile
@@ -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))