1
0

Makefile 1.7 KB

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