You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python3-pip
  9. PKG_VERSION:=7.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pip/
  13. PKG_MD5SUM:=3823d2343d9f3aaab21cf9c917710196
  14. PKG_LICENSE:=MIT
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/pip-$(PKG_VERSION)
  16. PKG_USE_MIPS16:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python3-package.mk)
  19. define Package/python3-pip
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Tool for installing Python $(PYTHON3_VERSION) packages.
  24. URL:=https://pip.pypa.io
  25. DEPENDS:=+python3 +python3-dev +python3-lib2to3 +python3-setuptools
  26. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  27. endef
  28. define Package/python3-pip/description
  29. A tool for installing and managing Python $(PYTHON3_VERSION) packages.
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/Py3Mod,,\
  33. install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  34. --single-version-externally-managed \
  35. )
  36. endef
  37. define Py3Package/python3-pip/filespec
  38. +|$(PYTHON3_PKG_DIR)
  39. -|$(PYTHON3_PKG_DIR)/_vendor/distlib/*.exe
  40. -|$(PYTHON3_PKG_DIR)/utils/outdated.py
  41. endef
  42. define Py3Package/python3-pip/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin
  45. $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
  46. endef
  47. $(eval $(call Py3Package,python3-pip))
  48. $(eval $(call BuildPackage,python3-pip))