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.

58 lines
1.4 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. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  25. endef
  26. define Package/python-setuptools/description
  27. Easily download, build, install, upgrade, and uninstall Python packages
  28. endef
  29. define Build/Compile
  30. $(call Build/Compile/PyMod,,\
  31. install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  32. --single-version-externally-managed \
  33. )
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(PYTHON_LIB_DIR)
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  39. $(PYTHON_LIB_DIR)
  40. endef
  41. define PyPackage/python-setuptools/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  44. endef
  45. $(eval $(call PyPackage,python-setuptools))
  46. $(eval $(call BuildPackage,python-setuptools))