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-setuptools
  9. PKG_VERSION:=18.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:=f72e87f34fbf07f299f6cb46256a0b06
  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 --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  31. --single-version-externally-managed \
  32. )
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(PYTHON_LIB_DIR)
  36. $(CP) \
  37. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  38. $(PYTHON_LIB_DIR)
  39. endef
  40. define PyPackage/python-setuptools/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  43. endef
  44. $(eval $(call PyPackage,python-setuptools))
  45. $(eval $(call BuildPackage,python-setuptools))