python-pip: upgrade to version 8.1.0
[feed/packages.git] / lang / python-pip / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=python-pip
11 PKG_VERSION:=8.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pip/
16 PKG_MD5SUM:=e9c3844db343f47d16040b32ad9072be
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/pip-$(PKG_VERSION)
19 PKG_USE_MIPS16:=0
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-pip
25 SUBMENU:=Python
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Tool for installing Python packages.
29 URL:=https://pip.pypa.io
30 DEPENDS:=+python +python-setuptools +ca-certificates
31 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
32 endef
33
34 define Package/python-pip/description
35 A tool for installing and managing Python packages.
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/PyMod,,\
40 install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
41 --single-version-externally-managed \
42 )
43 endef
44
45 define PyPackage/python-pip/filespec
46 +|$(PYTHON_PKG_DIR)
47 -|$(PYTHON_PKG_DIR)/pip/_vendor/distlib/*.exe
48 endef
49
50 define PyPackage/python-pip/install
51 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
53 $(INSTALL_CONF) ./files/pip.conf $(1)/etc/
54 endef
55
56 $(eval $(call PyPackage,python-pip))
57 $(eval $(call BuildPackage,python-pip))
58