diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-05-18 20:38:09 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-05-26 22:06:24 +0800 |
| commit | b4975f8bbb9f61a2a170dc1acd6cabe2b7e9f93c (patch) | |
| tree | d36eef267fc9740d0f3027f10f79ae006e366af3 /lang/python/python-setuptools/Makefile | |
| parent | eee273507b868ad5f6f7e744d513c85330967906 (diff) | |
python3: Split setuptools into separate source package
Packaging setuptools from a separate source package allows it to stay
updated with upstream.
Host setuptools will remain installed as part of python3. Host
setuptools is used in a much more controlled way and so is less critical
for it to track upstream.
setuptools was in a separate source package that was removed in
a53d0c5a403d1669e2cf6c59c2be6a9d3ed633a0; this work is not based on that
earlier package.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-setuptools/Makefile')
| -rw-r--r-- | lang/python/python-setuptools/Makefile | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/lang/python/python-setuptools/Makefile b/lang/python/python-setuptools/Makefile new file mode 100644 index 000000000..fa6ec74e9 --- /dev/null +++ b/lang/python/python-setuptools/Makefile @@ -0,0 +1,82 @@ +# +# Copyright (C) 2023 Jeffery To +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-setuptools +PKG_VERSION:=67.8.0 +PKG_RELEASE:=1 + +PYPI_NAME:=setuptools +PKG_HASH:=62642358adc77ffa87233bc4d2354c4b2682d214048f500964dbe760ccedf102 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> +CPE_ID:=cpe:/a:python:setuptools + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-setuptools/Default + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + URL:=https://github.com/pypa/setuptools +endef + +define Package/python3-pkg-resources +$(call Package/python3-setuptools/Default) + TITLE:=Package resource API + DEPENDS:=+python3-light +python3-email +python3-logging +python3-urllib +endef + +define Package/python3-setuptools +$(call Package/python3-setuptools/Default) + TITLE:=Fully-featured library to package Python projects + DEPENDS:=+python3 +python3-pkg-resources +endef + +define Package/python3-setuptools/description/Default +Setuptools is a fully-featured, actively-maintained, and stable library +designed to facilitate packaging Python projects. + +It helps developers to easily share reusable code (in the form of a +library) and programs (e.g., CLI/GUI tools implemented in Python), that +can be installed with pip and uploaded to PyPI. +endef + +define Package/python3-pkg-resources/description +$(call Package/python3-setuptools/description/Default) + +This is the pkg_resources module of setuptools. +endef + +define Package/python3-setuptools/description +$(call Package/python3-setuptools/description/Default) + +This is the main setuptools module. +endef + +define Py3Package/python3-pkg-resources/filespec ++|$(PYTHON3_PKG_DIR)/pkg_resources +endef + +define Py3Package/python3-setuptools/filespec ++|$(PYTHON3_PKG_DIR) +-|$(PYTHON3_PKG_DIR)/pkg_resources +endef + +$(eval $(call Py3Package,python3-pkg-resources)) +$(eval $(call Py3Package,python3-setuptools)) + +$(eval $(call BuildPackage,python3-pkg-resources)) +$(eval $(call BuildPackage,python3-setuptools)) + +$(eval $(call BuildPackage,python3-pkg-resources-src)) +$(eval $(call BuildPackage,python3-setuptools-src)) |
