2 # Copyright (C) 2014 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:=pip-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/
16 PKG_MD5SUM:=87083c0b9867963b29f7aba3613e8f4a
18 PKG_BUILD_DIR:=$(BUILD_DIR)/python-pip-$(PKG_VERSION)
19 PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
20 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/python-pip-$(PKG_VERSION)
21 HOST_UNPACK=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
24 HOST_BUILD_DEPENDS:=python python/host python-setuptools/host
26 include $(INCLUDE_DIR)/host-build.mk
27 include $(INCLUDE_DIR)/package.mk
28 $(call include_mk, python-package.mk)
29 $(call include_mk, python-host.mk)
31 define Package/python-pip
35 TITLE:=Tool for installing Python packages.
36 URL:=https://pip.pypa.io
37 DEPENDS:=+python +python-setuptools +ca-certificates
38 MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
41 define Package/python-pip/description
42 A tool for installing and managing Python packages.
46 $(call Build/Compile/PyMod,,\
47 install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
48 --single-version-externally-managed \
52 define PyPackage/python-pip/filespec
54 -|$(PYTHON_PKG_DIR)/pip/_vendor/distlib/*.exe
57 define PyPackage/python-pip/install
58 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
60 $(INSTALL_CONF) ./files/pip.conf $(1)/etc/
64 $(call Build/Compile/HostPyMod,,\
65 install --root="$(STAGING_DIR)/host" --prefix="" \
66 --single-version-externally-managed \
73 $(eval $(call HostBuild))
75 $(eval $(call PyPackage,python-pip))
76 $(eval $(call BuildPackage,python-pip))