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

As we have many python packages using the poetry(poetry-core) build
system we should add a setup type for it so that we don't have to
manually specify the host-python-poetry-core 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-23 16:09:33 -06:00
committed by Thomas Petazzoni
parent f27fc081e8
commit 0205f4c2b8
4 changed files with 42 additions and 13 deletions

View File

@@ -419,6 +419,8 @@ class BuildrootPackage():
self.setup_metadata['method'] = 'flit'
elif build_backend == 'hatchling.build':
self.setup_metadata['method'] = 'hatch'
elif build_backend == 'poetry.core.masonry.api':
self.setup_metadata['method'] = 'poetry'
elif build_backend == 'setuptools.build_meta':
self.setup_metadata['method'] = 'setuptools'
else: