package/pkg-python.mk: add hatch setup type

As we have many python packages using the hatch(hatchling) build
system we should add a setup type for it so that we don't have to
manually specify the host-python-hatchling dependency.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard
2024-10-08 16:27:24 -06:00
committed by Thomas Petazzoni
parent 7e739d49b2
commit 1459c0a6f0
4 changed files with 41 additions and 12 deletions

View File

@@ -417,6 +417,8 @@ class BuildrootPackage():
self.build_backend = build_backend
if build_backend == 'flit_core.buildapi':
self.setup_metadata['method'] = 'flit'
elif build_backend == 'hatchling.build':
self.setup_metadata['method'] = 'hatch'
elif build_backend == 'setuptools.build_meta':
self.setup_metadata['method'] = 'setuptools'
else: