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.

60 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2014-2015 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:=python3-setuptools
  9. PKG_VERSION:=19.4
  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:=c5a7d90c1e0acf8c4ec5c2bf31bc25b5
  14. PKG_LICENSE:=PSF
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/setuptools-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. $(call include_mk, python3-package.mk)
  18. define Package/python3-setuptools
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=Tool for installing Python $(PYTHON3_VERSION) packages.
  23. URL:=https://bitbucket.org/pypa/setuptools
  24. DEPENDS:=+python3 +python3-dev +python3-lib2to3
  25. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  26. endef
  27. define Package/python3-setuptools/description
  28. Easily download, build, install, upgrade, and uninstall Python $(PYTHON3_VERSION) packages
  29. endef
  30. define Build/Compile
  31. $(call Build/Compile/Py3Mod,,\
  32. install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \
  33. --single-version-externally-managed \
  34. )
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(PYTHON3_LIB_DIR)
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)$(PYTHON3_PKG_DIR)/* \
  40. $(PYTHON3_LIB_DIR)
  41. endef
  42. define Py3Package/python3-setuptools/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/
  45. $(LN) easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/easy_install3
  46. endef
  47. $(eval $(call Py3Package,python3-setuptools))
  48. $(eval $(call BuildPackage,python3-setuptools))