2 # Copyright (C) 2014-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
:=pip-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://pypi.python.org
/packages
/source
/p
/pip
/
16 PKG_MD5SUM
:=3823d2343d9f3aaab21cf9c917710196
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/pip-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python3-package.mk
)
26 define Package
/python3-pip
30 TITLE
:=Tool for installing Python
$(PYTHON3_VERSION
) packages.
31 URL
:=https
://pip.pypa.io
32 DEPENDS
:=+python3
+python3-dev
+python3-lib2to3
+python3-setuptools
33 MAINTAINER
:=Alexandru Ardelean
<ardeleanalex@gmail.com
>
36 define Package
/python3-pip
/description
37 A tool for installing and managing Python
$(PYTHON3_VERSION
) packages.
41 $(call Build
/Compile
/Py3Mod
,,\
42 install --root
="$(PKG_INSTALL_DIR)" --prefix="/usr" \
43 --single-version-externally-managed \
47 define Py3Package
/python3-pip
/filespec
49 -|
$(PYTHON3_PKG_DIR
)/_vendor
/distlib
/*.exe
50 -|
$(PYTHON3_PKG_DIR
)/utils
/outdated.py
53 define Py3Package
/python3-pip
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/pip
$(PYTHON3_VERSION
) $(1)/usr
/bin
56 $(LN
) pip
$(PYTHON3_VERSION
) $(1)/usr
/bin
/pip3
59 $(eval
$(call Py3Package
,python3-pip
))
60 $(eval
$(call BuildPackage
,python3-pip
))