From patchwork Sat Jun 3 08:07:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= X-Patchwork-Id: 25082 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC15BC7EE29 for ; Sat, 3 Jun 2023 08:07:13 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web10.8018.1685779627945352199 for ; Sat, 03 Jun 2023 01:07:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=SUw9D4ut; spf=pass (domain: gmail.com, ip: 209.85.221.47, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-30c55d2b9f3so1930427f8f.2 for ; Sat, 03 Jun 2023 01:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685779626; x=1688371626; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bd3uamqNE2mUJH97htM1mVMNOCsutZvnGui61IsHt5A=; b=SUw9D4ut5iak8cVIqPe1v89jcaqi2lqdhNu5LCN9mlyH8Q4s72jCLVsyP1rOylutr4 qsFCm5h9EA+0YjVrpJ2swDaCOrwU0aGLu0WumTjTqRlz8vg43ZmHqzpRZns5cOdTYHrr raRP0ZAXxYIPGDt48YkrgKHBm3Py/A1Yb3xV8GUYRmDUko0Jq/POVWeB82I1o8np+UVz wdKoFTDCVzT5UOvvpTi8c7KLb43e1defurGxNwj6lNrEMS/EIaTjgBbPgRj7lCvu90oB 22opAW4MYmRRgA70WsHUc6VHhvbfxntUOGHjGk0fE259+MeZZydud8fkaANPqJ/be50K SYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685779626; x=1688371626; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bd3uamqNE2mUJH97htM1mVMNOCsutZvnGui61IsHt5A=; b=fVmhBJfB9toKrFlp+OmEASFWy3AA2QHylp7DRQXWJBbeP655YfPEP6vi1x4ykhpKrn Zj7o0adQe1kv54Zp2G3QJdjeUj24VZ02eqjng8q/QvEtsOGHqzjc9cGXrQeUfesyylIe ajI5e4mAGGezbq1hCcIu1Eo/A8gwgPzbFPk5eJt6sYnkeGMXV2VjJ/JXK6DA/lCph1LD blNpBUZlViD9+iV0NjZ8RlRJb5OdsOP44QIz/HepH7n1t82qYJNyzgFjN/Se4BgKrgVG ARHtw9cCKgSfvWSaweFnrgHA+SAwU1BiN50y2+O73eSgVdD3p2Ee/D+VVVd+6GeX4qzY 0jig== X-Gm-Message-State: AC+VfDy8ewcwd7n0rNiKocfSiDZxQTz2fPkp1d0WpYGKrBu4+Gavx9Rf StqullQai8Mr9LeiNQM5xsrvOX+YIdY= X-Google-Smtp-Source: ACHHUZ5j6DoT1hSy9pqCoyv8ZgPkABK2VdlZkSkJf4lchRzbZa7N3FekTd+rO8aj9VMWDxA9U6+cIQ== X-Received: by 2002:a05:6000:88a:b0:30a:f038:6113 with SMTP id cs10-20020a056000088a00b0030af0386113mr1547948wrb.40.1685779625792; Sat, 03 Jun 2023 01:07:05 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id i8-20020adfdec8000000b0030796e103a1sm3801902wrn.5.2023.06.03.01.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 01:07:05 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin , Alexandre Belloni , =?utf-8?b?Wm9sdMOhbiBC?= =?utf-8?b?w7ZzesO2cm3DqW55aQ==?= Subject: [PATCH v4 1/3] python3-pyproject-metadata: New recipe Date: Sat, 3 Jun 2023 10:07:01 +0200 Message-Id: <20230603080703.1400571-1-zboszor@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 03 Jun 2023 08:07:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/182347 It is a dependency for python3-meson-python. Signed-off-by: Zoltán Böszörményi --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-pyproject-metadata_0.7.1.bb | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 0f7b7287bb..cae9d36135 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -670,6 +670,7 @@ RECIPE_MAINTAINER:pn-python3-pygobject = "Zang Ruochen RECIPE_MAINTAINER:pn-python3-pyopenssl = "Tim Orling " RECIPE_MAINTAINER:pn-python3-pyparsing = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-pyproject-hooks = "Ross Burton " +RECIPE_MAINTAINER:pn-python3-pyproject-metadata = "Zoltán Böszörményi " RECIPE_MAINTAINER:pn-python3-pysocks = "Tim Orling " RECIPE_MAINTAINER:pn-python3-pytest = "Tim Orling " RECIPE_MAINTAINER:pn-python3-pytest-runner = "Tim Orling " diff --git a/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb b/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb new file mode 100644 index 0000000000..063df1b04f --- /dev/null +++ b/meta/recipes-devtools/python/python3-pyproject-metadata_0.7.1.bb @@ -0,0 +1,17 @@ +SUMMARY = "PEP 621 metadata parsing" +HOMEPAGE = "https://github.com/FFY00/python-pyproject-metadata" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=310439af287b0fb4780b2ad6907c256c" + +PYPI_PACKAGE = "pyproject-metadata" + +inherit pypi python_setuptools_build_meta +SRC_URI[sha256sum] = "0a94f18b108b9b21f3a26a3d541f056c34edcb17dc872a144a15618fed7aef67" + +BBCLASSEXTEND = "native nativesdk" + +RDEPENDS:${PN} += " \ + python3-logging \ + python3-packaging \ + python3-profile \ +" From patchwork Sat Jun 3 08:07:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= X-Patchwork-Id: 25083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAFABC77B7A for ; Sat, 3 Jun 2023 08:07:13 +0000 (UTC) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.web11.8003.1685779628924307987 for ; Sat, 03 Jun 2023 01:07:09 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=G9A2iOsY; spf=pass (domain: gmail.com, ip: 209.85.221.41, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3078cc99232so2661210f8f.3 for ; Sat, 03 Jun 2023 01:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685779626; x=1688371626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oxcKuDthoBylwsUSRBKayZeKLPCiJOy5nugEtOXMNV4=; b=G9A2iOsYGf20xLuMjsTY6XCAGuL2RsnRmc+CivJ/VlKdBUJjukcCrgMhrAm/6TrMp1 21JmosPy9GBgQFoSdGZEkBwmvOLqCYjNnW0SVdWBkUQYUx0iRS2WxDYbMpiKgQX7SFP0 lYLo4aGGgtMUuSh+sb/XdGAkT2Ku2pCsM/wGLURmCcomz/jjjr5zLru0V7/DUfLvVVCD lx8RkYrZOadYg6tS+DbGvM8CreC0vo+Z8ySa1MsqWDexOhmH+9HTRlvCJI1qbLZraCBT /uXTtnYeK3ia9Aw95a+fx2OEWvfxV3qln67pGXC10+VOX4M3Ttdcn6EVMA3MY6ymUPqz unGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685779626; x=1688371626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oxcKuDthoBylwsUSRBKayZeKLPCiJOy5nugEtOXMNV4=; b=EIqL2NMuNGReUaPDeUTmtcC0p6/v9HrmaTtfI1KvS8Gig2ANM75ppiDUA5IF22Jqmc psMNCP+GA9rVusuFPDlVVhUUL0HuIA1x/pxNuN0c5N6T9yLsQsCxzNJIiJ/28FRZZX3A kb5+Nu95AxnuL16Mu0eYIMVcR+ijc01fWv3wAzrikTMlwfL4p3Txt7Ze9+miCeI8/cja 1CD/WJknlTcGeOfle/MUk1PEvMK7Sp4qgxlFgW7j+PZBoywgr2vaKul7DZZXwm5zzR7I GQSNBRo3TaJ9KOeaPgVIOJ9Qvs+xmITFIk1jhldWOy1q3UU4lGqZwUfES+XDIr2QIKrD 1TaA== X-Gm-Message-State: AC+VfDyeRGmys7ff4TEXeR1RWk22gZelEL6nwJDtbQwFDhMmGsPtL4dN amwfJUu032PajktRdcnuOLxp4nkuOKY= X-Google-Smtp-Source: ACHHUZ7bLGSJq9IjWp9jFP98pIGpDTtyvbdWXcML1s0xL3cn+HweSwiDtBCdDA0W4FPjRmZuYFD0HQ== X-Received: by 2002:a5d:440f:0:b0:30a:e647:fc2e with SMTP id z15-20020a5d440f000000b0030ae647fc2emr1747150wrq.19.1685779626402; Sat, 03 Jun 2023 01:07:06 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id i8-20020adfdec8000000b0030796e103a1sm3801902wrn.5.2023.06.03.01.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 01:07:06 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin , Alexandre Belloni , =?utf-8?b?Wm9sdMOhbiBC?= =?utf-8?b?w7ZzesO2cm3DqW55aQ==?= Subject: [PATCH v4 2/3] python3-meson-python: New recipe Date: Sat, 3 Jun 2023 10:07:02 +0200 Message-Id: <20230603080703.1400571-2-zboszor@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230603080703.1400571-1-zboszor@gmail.com> References: <20230603080703.1400571-1-zboszor@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 03 Jun 2023 08:07:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/182348 This python module adds support for a new PEP517 build backend used by recent versions of scikit-image, scipy and others. The previously added python_mesonpy.bbclass uses it Signed-off-by: Zoltán Böszörményi --- meta/conf/distro/include/maintainers.inc | 1 + .../python/python3-meson-python_0.13.1.bb | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-meson-python_0.13.1.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index cae9d36135..a0093001c2 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -647,6 +647,7 @@ RECIPE_MAINTAINER:pn-python3-magic = "Joshua Watt " RECIPE_MAINTAINER:pn-python3-mako = "Oleksandr Kravchuk " RECIPE_MAINTAINER:pn-python3-markdown = "Alexander Kanavin " RECIPE_MAINTAINER:pn-python3-markupsafe = "Richard Purdie " +RECIPE_MAINTAINER:pn-python3-meson-python = "Zoltán Böszörményi " RECIPE_MAINTAINER:pn-python3-more-itertools = "Tim Orling " RECIPE_MAINTAINER:pn-python3-ndg-httpsclient = "Tim Orling " RECIPE_MAINTAINER:pn-python3-numpy = "Oleksandr Kravchuk " diff --git a/meta/recipes-devtools/python/python3-meson-python_0.13.1.bb b/meta/recipes-devtools/python/python3-meson-python_0.13.1.bb new file mode 100644 index 0000000000..6b9ff24f2a --- /dev/null +++ b/meta/recipes-devtools/python/python3-meson-python_0.13.1.bb @@ -0,0 +1,23 @@ +SUMMARY = "Meson Python build backend (PEP 517)" +HOMEPAGE = "https://github.com/mesonbuild/meson-python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=d580b27e67cc0892a5b005b0be114b60" + +DEPENDS = " \ + meson-native ninja-native patchelf-native \ + python3-pyproject-metadata-native \ +" + +PYPI_PACKAGE = "meson_python" + +inherit pypi python_mesonpy +SRC_URI[sha256sum] = "63b3170001425c42fa4cfedadb9051cbd28925ff8eed7c40d36ba0099e3c7618" + +DEPENDS:remove:class-native = "python3-meson-python-native" + +RDEPENDS:${PN} = " \ + meson ninja patchelf \ + python3-pyproject-metadata \ +" + +BBCLASSEXTEND = "native nativesdk" From patchwork Sat Jun 3 08:07:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= X-Patchwork-Id: 25084 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD228C7EE2E for ; Sat, 3 Jun 2023 08:07:13 +0000 (UTC) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web11.8004.1685779629129307532 for ; Sat, 03 Jun 2023 01:07:09 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=aywXII6T; spf=pass (domain: gmail.com, ip: 209.85.221.50, mailfrom: zboszor@gmail.com) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-30aeee7c8a0so2164883f8f.1 for ; Sat, 03 Jun 2023 01:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685779627; x=1688371627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H/49Xjj7g0KGr6mzQb2M+nd8WQXO/9VdM4cxbpnHsoY=; b=aywXII6Tr9QdVbTLL4GF9pMuk/GZzdyg8cqTY7vb20EFn7JNaxvJZ5ku4CUC26Ymth PJSX9y8sKtdBLXAv4/QMdS79WpwtERxF5vV4EJTGoHzvYjpuV0o47JzDQ7QuRgjasYa4 6x5I5LkEYxkAPvBZ8AYsVX0mgtCnf5PjISaPhymjKhkgSWpxOTyyewkAicOmH+LXZu7g yZUmtQQkPTRFUq/JhODc60szn+lK2Y55sCXV3+DF1EDrLDdrIyM8llQjp2RSLJ+JXaP/ J/+Y2uuRxZl0JHChS2gohHxx4ndNHwiifOsWHXTvFg3MW4OKiU9HvatUKaeHqe9+Izav P5Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685779627; x=1688371627; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H/49Xjj7g0KGr6mzQb2M+nd8WQXO/9VdM4cxbpnHsoY=; b=JvsPtadiBgXr6fkKM2sA4s44G5H/j99bGl4DcuVR2GYNat6WhFKq7uCZ/XM+YRRu01 zSnAICDIhV2rDdIuOQAaP22ECBzDGNVS+KcwgtgQv1rlCMOPYv7gTJQNpsfzRZdX6ak0 F3/KiNZlv6zH8+fR454r4/McOiZ+Lz9jMQIZFQ/vptaAWPLTbCCoWSQ93T+FIzjz6paf kKyKR/xc4EaieRNBSd+11oB/v1k+sQ/hbjhwvZzLVonAuEwCS24arS/NlCDZPWYW8RLL ManAkWzrtpooaUztkRO7/wtFuX4reWwQ4SZHgEapobanm3UMYRlxIgtvYPnQmO5pugaZ W0yQ== X-Gm-Message-State: AC+VfDxT9NEAy2z5nCqTRRTA8nFFWRSFJO8CCsujjJs0u+cPGhTMoGiy Ci475rC85A4ks7kKW4VztTz9ByiKgnE= X-Google-Smtp-Source: ACHHUZ7o5zv9U3/o85WANkBCyOzeWaxhFLENdRhp5f4hxWNs028tuGD+kzAEgr+OL+LlrSoV7ySsMQ== X-Received: by 2002:a5d:5915:0:b0:30a:e70d:8022 with SMTP id v21-20020a5d5915000000b0030ae70d8022mr1433709wrd.26.1685779626965; Sat, 03 Jun 2023 01:07:06 -0700 (PDT) Received: from localhost.lan (dsl51B7D2F9.fixip.t-online.hu. [81.183.210.249]) by smtp.gmail.com with ESMTPSA id i8-20020adfdec8000000b0030796e103a1sm3801902wrn.5.2023.06.03.01.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 01:07:06 -0700 (PDT) From: =?utf-8?b?Wm9sdMOhbiBCw7ZzesO2cm3DqW55aQ==?= To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin , Alexandre Belloni , =?utf-8?b?Wm9sdMOhbiBC?= =?utf-8?b?w7ZzesO2cm3DqW55aQ==?= Subject: [PATCH v4 3/3] python_mesonpy: New class Date: Sat, 3 Jun 2023 10:07:03 +0200 Message-Id: <20230603080703.1400571-3-zboszor@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230603080703.1400571-1-zboszor@gmail.com> References: <20230603080703.1400571-1-zboszor@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 03 Jun 2023 08:07:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/182349 This is a new PEP517 compatible build class for python modules that use pyproject.toml and this: [build-system] build-backend = 'mesonpy' The new class uses python3-meson-python-native. Signed-off-by: Zoltán Böszörményi --- meta/classes-recipe/python_mesonpy.bbclass | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 meta/classes-recipe/python_mesonpy.bbclass diff --git a/meta/classes-recipe/python_mesonpy.bbclass b/meta/classes-recipe/python_mesonpy.bbclass new file mode 100644 index 0000000000..1da8b005ab --- /dev/null +++ b/meta/classes-recipe/python_mesonpy.bbclass @@ -0,0 +1,54 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +inherit meson setuptools3-base python3targetconfig python_pep517 + +# Filter out meson_do_qa_configure from do_configure[postfuncs] +DOCONFIGUREPOSTFUNCS := "${@d.getVarFlag('do_configure', 'postfuncs')}" +DOCONFIGUREPOSTFUNCS:remove = "meson_do_qa_configure" +do_configure[postfuncs] := "${@'' if d.getVar('DOCONFIGUREPOSTFUNCS') is None else d.getVar('DOCONFIGUREPOSTFUNCS') }" + +# This prevents the meson error: +# ERROR: Got argument buildtype as both -Dbuildtype and --buildtype. Pick one. +MESONOPTS:remove = "--buildtype ${MESON_BUILDTYPE}" + +CONFIGURE_FILES = "pyproject.toml" + +DEPENDS += "python3-wheel-native python3-meson-python-native" + +def mesonpy_get_args(d): + vars = ['MESONOPTS', 'MESON_CROSS_FILE', 'EXTRA_OEMESON'] + varlist = [] + for var in vars: + value = d.getVar(var) + vallist = value.split() + for elem in vallist: + varlist.append("-Csetup-args=" + elem) + return ' '.join(varlist) + +PEP517_BUILD_OPTS = "-Cbuilddir='${B}' ${@mesonpy_get_args(d)}" + +# Python pyx -> c -> so build leaves absolute build paths in the code +INSANE_SKIP:${PN} += "buildpaths" +INSANE_SKIP:${PN}-src += "buildpaths" + +python_mesonpy_do_configure () { + python_pep517_do_configure +} + +python_mesonpy_do_compile () { + python_pep517_do_compile +} + +python_mesonpy_do_install () { + python_pep517_do_install +} + +python_mesonpy_do_bootstrap_install () { + python_pep517_do_bootstrap_install +} + +EXPORT_FUNCTIONS do_configure do_compile do_install