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.

61 lines
1.7 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:=8.1.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pip-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/
  13. PKG_MD5SUM:=87083c0b9867963b29f7aba3613e8f4a
  14. PKG_LICENSE:=MIT
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/python3-pip-$(PKG_VERSION)
  16. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  17. PKG_USE_MIPS16:=0
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python3-package.mk)
  20. define Package/python3-pip
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Tool for installing Python $(PYTHON3_VERSION) packages.
  25. URL:=https://pip.pypa.io
  26. DEPENDS:=+python3 +python3-dev +python3-lib2to3 +python3-setuptools
  27. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  28. endef
  29. define Package/python3-pip/description
  30. A tool for installing and managing Python $(PYTHON3_VERSION) packages.
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/Py3Mod,,\
  34. install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  35. --single-version-externally-managed \
  36. )
  37. endef
  38. define Py3Package/python3-pip/filespec
  39. +|$(PYTHON3_PKG_DIR)
  40. -|$(PYTHON3_PKG_DIR)/_vendor/distlib/*.exe
  41. -|$(PYTHON3_PKG_DIR)/utils/outdated.py
  42. endef
  43. define Py3Package/python3-pip/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin
  46. $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
  47. endef
  48. $(eval $(call Py3Package,python3-pip))
  49. $(eval $(call BuildPackage,python3-pip))