python-requests: use PyPackage to build 7582/head
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Tue, 4 Dec 2018 17:45:33 +0000 (15:45 -0200)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 5 Dec 2018 10:11:53 +0000 (08:11 -0200)
Updated Makefile to use PyPackage, added option to build source package.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
lang/python/python-requests/Makefile

index 0ce0e4d635327eac9401815f84edeaf1ea352ec6..9723f60f01c74727062f5b83ccd9c957e023b047 100644 (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))