This updates all Python packages that download their source from PyPi to use pypi.mk. This will allow future improvements/changes to pypi.mk to affect all relevant packages. This also makes it easier for future Python packages to start using pypi.mk, when it's clear how it is used in existing packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
76 lines
1.9 KiB
Makefile
76 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2015, 2017-2018 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-six
|
|
PKG_VERSION:=1.12.0
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=six
|
|
PKG_HASH:=d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
HOST_BUILD_DEPENDS:=python3/host
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python-package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python-six/Default
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Python 2 and 3 compatibility library
|
|
URL:=https://github.com/benjaminp/six
|
|
endef
|
|
|
|
define Package/python-six
|
|
$(call Package/python-six/Default)
|
|
DEPENDS:=+PACKAGE_python-six:python-light
|
|
VARIANT:=python
|
|
endef
|
|
|
|
define Package/python3-six
|
|
$(call Package/python-six/Default)
|
|
DEPENDS:=+PACKAGE_python3-six:python3-light
|
|
VARIANT:=python3
|
|
endef
|
|
|
|
define Package/python-six/description
|
|
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
|
for smoothing over the differences between the Python versions with the goal of
|
|
writing Python code that is compatible on both Python versions. See the
|
|
documentation for more information on what is provided.
|
|
endef
|
|
|
|
define Package/python3-six/description
|
|
$(call Package/python-six/description)
|
|
.
|
|
(Variant for Python3)
|
|
endef
|
|
|
|
define Host/Compile
|
|
$(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
|
|
endef
|
|
|
|
Host/Install:=
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call PyPackage,python-six))
|
|
$(eval $(call BuildPackage,python-six))
|
|
$(eval $(call BuildPackage,python-six-src))
|
|
|
|
$(eval $(call Py3Package,python3-six))
|
|
$(eval $(call BuildPackage,python3-six))
|
|
$(eval $(call BuildPackage,python3-six-src))
|