summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-19 09:30:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-20 11:39:45 +0000
commit9f7475b4e5219da89f04c21a96d54e76fc6a6960 (patch)
tree70d7f1dd96d7c96fb8e17a0531d784548fba74d1 /scripts
parenta7484a66b42b8b0eaf3336272827f0bd10668685 (diff)
downloadpoky-9f7475b4e5219da89f04c21a96d54e76fc6a6960.tar.gz
recipetool; add support for python_mesonpy class
* Add support to detect the "mesonpy" build-backend for recipetool create. * Add oe-selftest case for creating a recipe for "siphash24" from pypi. https://pypi.org/project/siphash24/ This is by far the simplest recipe using the mesonpy build backend. Upstream does not provide LICENSE file(s) and we do not detect the LICENSE so don't check for that result in the test. Likewise, upstream does not define HOMEPAGE, so skip that result. (From OE-Core rev: 256749322671d2f4ea994db671d73c4de10e1723) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index a589343cfb..a807dafae5 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -739,6 +739,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
739 "flit_core.buildapi": "python_flit_core", 739 "flit_core.buildapi": "python_flit_core",
740 "hatchling.build": "python_hatchling", 740 "hatchling.build": "python_hatchling",
741 "maturin": "python_maturin", 741 "maturin": "python_maturin",
742 "mesonpy": "python_mesonpy",
742 } 743 }
743 744
744 # setuptools.build_meta and flit declare project metadata into the "project" section of pyproject.toml 745 # setuptools.build_meta and flit declare project metadata into the "project" section of pyproject.toml
@@ -779,6 +780,8 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
779 "python3-poetry-core-native", 780 "python3-poetry-core-native",
780 # already provided by python_flit_core.bbclass 781 # already provided by python_flit_core.bbclass
781 "python3-flit-core-native", 782 "python3-flit-core-native",
783 # already provided by python_mesonpy
784 "python3-meson-python-native",
782 ] 785 ]
783 786
784 # add here a list of known and often used packages and the corresponding bitbake package 787 # add here a list of known and often used packages and the corresponding bitbake package
@@ -790,6 +793,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler):
790 "setuptools-scm": "python3-setuptools-scm", 793 "setuptools-scm": "python3-setuptools-scm",
791 "hatchling": "python3-hatchling", 794 "hatchling": "python3-hatchling",
792 "hatch-vcs": "python3-hatch-vcs", 795 "hatch-vcs": "python3-hatch-vcs",
796 "meson-python" : "python3-meson-python",
793 } 797 }
794 798
795 def __init__(self): 799 def __init__(self):