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.

56 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:=1.5.6
  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:=01026f87978932060cc86c1dc527903e
  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
  25. endef
  26. define Package/python-pip/description
  27. A tool for installing and managing Python packages.
  28. endef
  29. PYTHONPATH:=$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR)
  30. define Build/Compile
  31. $(INSTALL_DIR) $(PYTHONPATH)
  32. $(call Build/Compile/PyMod,,\
  33. install --prefix="$(PKG_INSTALL_DIR)/usr" \
  34. )
  35. endef
  36. define PyPackage/python-pip/filespec
  37. +|/usr/lib/python$(PYTHON_VERSION)
  38. endef
  39. define PyPackage/python-pip/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  42. endef
  43. $(eval $(call PyPackage,python-pip))
  44. $(eval $(call BuildPackage,python-pip))