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.

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