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
/source
/p
/pip
/
16 PKG_MD5SUM
:=3823d2343d9f3aaab21cf9c917710196
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/pip-
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
22 $(call include_mk
, python-package.mk
)
24 define Package
/python-pip
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
>
34 define Package
/python-pip
/description
35 A tool for installing and managing Python packages.
39 $(call Build
/Compile
/PyMod
,,\
40 install --root
="$(PKG_INSTALL_DIR)" --prefix="/usr" \
41 --single-version-externally-managed \
45 define PyPackage
/python-pip
/filespec
47 -|
$(PYTHON_PKG_DIR
)/pip
/_vendor
/distlib
/*.exe
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
/
56 $(eval
$(call PyPackage
,python-pip
))
57 $(eval
$(call BuildPackage
,python-pip
))