]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
flit_core: add variable to control where pyproject.toml is located
authorRoss Burton <ross@burtonini.com>
Tue, 8 Mar 2022 14:30:33 +0000 (14:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Mar 2022 11:46:23 +0000 (11:46 +0000)
commitf85b512e2ad39ec32f11f9b25b8c92bea20c844d
treeceac24e227deba1c6617835b5ba1b12e5816ed73
parenta3d9eb8051bc2effb8130b1743ba251c1fe7c525
flit_core: add variable to control where pyproject.toml is located

The PEP517[1] pyproject.toml doesn't have to be located at the top-level
of the source tree (for example, in recipes with multiple components), so
add a variable PEP517_SOURCE_PATH to set where the file is.

In the future there should be a pep517.bbclass to centralise the common
logic, but for now this can be defined in each of the relevant classes.

[1] https://www.python.org/dev/peps/pep-0517/

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/flit_core.bbclass