Re: [PATCH v2 2/2] meson: port python bindings to build natively via meson and meson-python
David Gibson <[email protected]>
| Newsgroups | org.kernel.vger.devicetree-compiler |
|---|---|
| Message-ID | <aBI67qC9Z6z3T-pu@zatzit> |
On Mon, Apr 28, 2025 at 09:41:43PM -0400, Eli Schwartz wrote: > We get full build parallelism and fewer confusing ancient distutils > paths. The python wheels build fully standalone, including linking > libfdt as a static library. > > For convenience, when running pip install a meson option is passed that > prevents building tools or installing headers/pkgconfig files. > meson-python would otherwise include them in the wheel itself, in case > they are needed, but this is essentially a bit useless so don't bother. > > The old setuptools-based build is now redundant and goes away. > > Signed-off-by: Eli Schwartz <[email protected]> LGTM, excepting one tiny typo [snip] > diff --git a/pyproject.toml b/pyproject.toml > new file mode 100644 > index 0000000..8682026 > --- /dev/null > +++ b/pyproject.toml > @@ -0,0 +1,33 @@ > +[build-system] > +build-backend = 'mesonpy' > +requires = ['meson-python'] > + > +[project] > +name = 'libfdt' > +authors = [ > + {name = 'Simon Glass', email = '[email protected]'}, > +] > +classifiers = [ > + 'Programming Language :: Python :: 3', > + 'License :: OSI Approved :: BSD License', > + 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', > + 'Operating System :: OS Independent', > +] > +description = 'Pthon binding for libfdt' "Pthon" -- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmgSOu0ACgkQzQJF27ox 2GczmA//Vu03ZM0KvFKR3V4AR64DV3xlTR9I5e2P0C6Hk5OmouksyMSSUc0y+v4/ 7hdW7z1SVFjMzPXT5b4nA33EktFDwhAhpsCBQ0Oq/bmKTnynVuMLSsD2ayretc5u LH2t2JRmN3gwo7NuBSHxR1LmjVtzRm0/8X/EJLOfsiDlJD6U3+DRQkfMAAfj9rsh 0xxfsigljuvLP1h/Ms11c6ksw/0ZtdHj4fTrFH9fNnE5P7BqKxlIhlh4xs81j3+5 10EnRm24trbiJxPzy4jzYHyyl9Tkn6gY7X8qiBTUxVzeR3H6RegU6CandvA5cqPF cwFmoAjj8ke/6+Pc9wWZdBkDnqIFDy2LXvbBFCWSoVpa2SUwB1nh/PxHRVI1BYiW Z0Eltw+y2zQCbsjLBnBREo+CQKi+AhB3MkTsl/JtR8Mi3UMAJV8emH74pSwoqvXB 4r0g+afXfYlKC5yfBEID9Oz4nL9vOR97wcqTgfianDHIzbUiUxEZS0Fh74UESc2O Pol/3UYFBl0V7Ynk8zf06WfVPnRuVX5i7aI8dAXN8DfHRb3eHnUK1bxMKhtVKr+8 SWfe9eIdvrc3WvqozhPkd4rovnvkmpNUC2YutzlYJMsCPocEY2W6JUZvezWdqaCG KZL4TlYSTHswVgWLWbS0BWL5UoN1e5bDKA4SEA10ezNhJ+5FU1w= =yJkp -----END PGP SIGNATURE-----