2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=six-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/s
/six
16 PKG_MD5SUM
:=34eed507548117b2ab523ab14b2f8b55
18 HOST_BUILD_DEPENDS
:=python
/host
19 PKG_BUILD_DEPENDS
:=python
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 PKG_LICENSE_FILES
:=LICENSE
25 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
27 include $(INCLUDE_DIR
)/host-build.mk
28 include $(INCLUDE_DIR
)/package.mk
29 $(call include_mk
, python-package.mk
)
31 PKG_UNPACK
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
32 HOST_UNPACK
:=$(HOST_TAR
) -C
$(HOST_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
34 define Package
/python-six
39 URL
:=https
://pypi.python.org
/pypi
/six
40 DEPENDS
:=+python-light
43 define Package
/python-six
/description
44 Six is a Python
2 and
3 compatibility library. It provides utility functions
45 for smoothing over the differences between the Python versions with the goal of
46 writing Python code that is compatible on both Python versions. See the
47 documentation for more information on what is provided.
51 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
55 $(call Build
/Compile
/HostPyMod
,,install --prefix="" --root
="$(STAGING_DIR_HOSTPKG)")
60 $(eval
$(call HostBuild
))
62 $(eval
$(call PyPackage
,python-six
))
63 $(eval
$(call BuildPackage
,python-six
))