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-setuptools
  9. PKG_VERSION:=18.0.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=setuptools-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/source/s/setuptools/
  13. PKG_MD5SUM:=cecd172c9ff7fd5f2e16b2fcc88bba51
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/setuptools-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. $(call include_mk, python-package.mk)
  17. define Package/python-setuptools
  18. SUBMENU:=Python
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=Tool for installing Python packages.
  22. URL:=https://bitbucket.org/pypa/setuptools
  23. DEPENDS:=+python
  24. endef
  25. define Package/python-setuptools/description
  26. Easily download, build, install, upgrade, and uninstall Python packages
  27. endef
  28. define Build/Compile
  29. $(call Build/Compile/PyMod,,\
  30. install --prefix="$(PKG_INSTALL_DIR)/usr" \
  31. )
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(PYTHON_LIB_DIR)
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  37. $(PYTHON_LIB_DIR)
  38. endef
  39. define PyPackage/python-setuptools/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  42. endef
  43. $(eval $(call PyPackage,python-setuptools))
  44. $(eval $(call BuildPackage,python-setuptools))