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.

59 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014 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:=python-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_BUILD_DIR:=$(BUILD_DIR)/python-pip-$(PKG_VERSION)
  15. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  16. PKG_USE_MIPS16:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/python-pip
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=Tool for installing Python packages.
  24. URL:=https://pip.pypa.io
  25. DEPENDS:=+python +python-setuptools +ca-certificates
  26. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  27. endef
  28. define Package/python-pip/description
  29. A tool for installing and managing Python packages.
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/PyMod,,\
  33. install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  34. --single-version-externally-managed \
  35. )
  36. endef
  37. define PyPackage/python-pip/filespec
  38. +|$(PYTHON_PKG_DIR)
  39. -|$(PYTHON_PKG_DIR)/pip/_vendor/distlib/*.exe
  40. endef
  41. define PyPackage/python-pip/install
  42. $(INSTALL_DIR) $(1)/usr/bin $(1)/etc
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  44. $(INSTALL_CONF) ./files/pip.conf $(1)/etc/
  45. endef
  46. $(eval $(call PyPackage,python-pip))
  47. $(eval $(call BuildPackage,python-pip))