summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-02 23:46:05 +0100
committerMichał Górny <mgorny@gentoo.org>2022-06-12 10:31:04 +0200
commit5421b19e22bcb300dac8e94383a946db8d22032f (patch)
treef27f1c4f92ac93e59f910ff12c0fdeb3799b6e68 /eclass
parentdistutils-r1.eclass: Update function docs (diff)
downloadgentoo-5421b19e22bcb300dac8e94383a946db8d22032f.tar.gz
gentoo-5421b19e22bcb300dac8e94383a946db8d22032f.tar.bz2
gentoo-5421b19e22bcb300dac8e94383a946db8d22032f.zip
distutils-r1.eclass: add initial meson-python PEP517 support
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 366a6b4ae192..3d83dbdf1dd5 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -106,6 +106,8 @@ esac
#
# - maturin - maturin backend
#
+# - meson-python - meson-python (mesonpy) backend
+#
# - no - no PEP517 build system (see below)
#
# - pbr - pbr backend
@@ -229,6 +231,10 @@ _distutils_set_globals() {
# undo the generic deps added above
bdep=
;;
+ meson-python)
+ bdep+='
+ dev-python/meson-python[${PYTHON_USEDEP}]'
+ ;;
pbr)
bdep+='
>=dev-python/pbr-5.8.0-r1[${PYTHON_USEDEP}]'
@@ -936,6 +942,11 @@ _distutils-r1_print_package_versions() {
no)
return
;;
+ meson-python)
+ packages+=(
+ dev-python/meson-python
+ )
+ ;;
pbr)
packages+=(
dev-python/pbr
@@ -1138,6 +1149,9 @@ _distutils-r1_backend_to_key() {
maturin)
echo maturin
;;
+ mesonpy)
+ echo meson-python
+ ;;
pbr.build)
echo pbr
;;