blob: 3b2ab65cb291f015afdaa9543706900a73e1a089 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2023 Jeffery To
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=python-build
11PKG_VERSION:=1.0.3
12PKG_RELEASE:=1
13
14PYPI_NAME:=build
15PKG_HASH:=538aab1b64f9828977f84bc63ae570b060a8ed1be419e7870b8b4fc5e6ea553b
16
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
20
21PKG_HOST_ONLY:=1
22HOST_BUILD_DEPENDS:= \
23 python3/host \
24 python-installer/host \
25 python-flit-core/host \
26 python-packaging/host \
27 python-pyproject-hooks/host
28
29PYTHON3_HOST_BUILD_VARS:=PYTHONPATH=src
30
31include ../pypi.mk
32include $(INCLUDE_DIR)/package.mk
33include $(INCLUDE_DIR)/host-build.mk
34include ../python3-package.mk
35include ../python3-host-build.mk
36
37define Package/python3-build
38 SECTION:=lang
39 CATEGORY:=Languages
40 SUBMENU:=Python
41 TITLE:=A simple, correct Python build frontend
42 URL:=https://github.com/pypa/build
43 DEPENDS:=+python3-light +python3-logging
44 BUILDONLY:=1
45endef
46
47define Package/python3-build/description
48A simple, correct PEP 517 build frontend.
49
50build will invoke the PEP 517 hooks to build a distribution package. It
51is a simple build tool and does not perform any dependency management.
52endef
53
54$(eval $(call Py3Package,python3-build))
55$(eval $(call BuildPackage,python3-build))
56$(eval $(call BuildPackage,python3-build-src))
57$(eval $(call HostBuild))