From patchwork Mon Feb 21 01:27:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3867 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 3E036C433EF for ; Mon, 21 Feb 2022 01:27:56 +0000 (UTC) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mx.groups.io with SMTP id smtpd.web09.5660.1645406875561953557 for ; Sun, 20 Feb 2022 17:27:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z9Sp1PQs; spf=pass (domain: gmail.com, ip: 209.85.216.51, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f51.google.com with SMTP id b8so13615972pjb.4 for ; Sun, 20 Feb 2022 17:27:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=EetkXY9EtwmTexw7LRaue0OgOxnFbRJcYqknZV8nokg=; b=Z9Sp1PQsyW8c7dwrs+RKp8N/Zk/eXo4IEVqEtnUTOr48Fkt/Z8hTqC27FS9KJmZNnT W9Z5kviqtceiCiPthMq+QKIrTEQBtaNSrZOXzS2jrs31CVKAUwsu9knxsp/tEv2mr0TS gc/cMy0MzrE0TSAypuqpyB6QUYtUCt/2bTvY7yZpiPTjMsNg+NwAwM+nCwuprmQB40cY pSouG4n+cyFw+9PkHOLWHK40WlgPgcAzfiO5sASAB6ax0vw/FyoCCeSmOiXqy1qN0hhP ebdEtdrYcWs/h5RBg50/Qw1B26O+5U3IWWfYSNfqlqIWWXTjEArfzPOQFLsNm4c3S28I hMCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EetkXY9EtwmTexw7LRaue0OgOxnFbRJcYqknZV8nokg=; b=G8wxIAXsZmebWWxgR0iWfZBlB5p3fjkSIqphahHv0k40JcPAoEN7HHNBNVzr1BlQAZ KQVy9eR5iDSwYAY+ZY3xz+YnOJKFz+etN7QUeWtFHu2j7267j6Un8OkEdO3rScGILWI/ Y8NoebMvWTrQcKxu0AxILIHqS1RXS91o1cOe8wZ/xIQpRm8QpXjZ4drhttpgdukuYVL1 vXQhp20itDPFDENvnm1aBvB6GIf/jF+H/ZZQPrzxLibFPmHO1x376NylG8ocB7axI3U4 GOAXvC5Yp9odFwFhjBLjAxch7cBC0S4icoDqQ5f/11ApMj3Q5jIvTiK+kZ9M2RRD4a/B mUIg== X-Gm-Message-State: AOAM531/Q/+JS6Uh7dgD/n7HLSD41aYV9UUobR0cAiAreCRNE4QSAK4W +2mIGKfkh7eKDsEzkq3TMc0176ER8GFtyQ== X-Google-Smtp-Source: ABdhPJwA00SGW30TaIXd5Hwl+LxQg83cjT7FgFrMHivROAHu4+haTM12b4MXIWeghR5ki4ZCFilKqw== X-Received: by 2002:a17:902:6b04:b0:14f:2cc0:fa98 with SMTP id o4-20020a1709026b0400b0014f2cc0fa98mr17176153plk.44.1645406874670; Sun, 20 Feb 2022 17:27:54 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:27:54 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 01/19] python3-wheel: move 0.37.0 from meta-python Date: Sun, 20 Feb 2022 17:27:30 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:27:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161993 This is one of the "new build tools" which are part of pypa (Python Packaging Authority) toolchain. Wheels are the official delivery mechanism for Python packages, replacing the now deprecated Eggs (egg-info). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-wheel_0.37.1.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-wheel_0.37.1.bb diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb new file mode 100644 index 00000000000..6c7a31db9e7 --- /dev/null +++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb @@ -0,0 +1,12 @@ +SUMMARY = "The official binary distribution format for Python " +HOMEPAGE = "https://github.com/pypa/wheel" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a0148f94f483f3e1489" + +SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native" + From patchwork Mon Feb 21 01:27:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3869 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 1E62CC433FE for ; Mon, 21 Feb 2022 01:27:59 +0000 (UTC) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mx.groups.io with SMTP id smtpd.web12.5659.1645406878203380748 for ; Sun, 20 Feb 2022 17:27:58 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NKLH+cXa; spf=pass (domain: gmail.com, ip: 209.85.216.51, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f51.google.com with SMTP id q11-20020a17090a304b00b001b94d25eaecso13975504pjl.4 for ; Sun, 20 Feb 2022 17:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=093y63bB3YtgqKbIKttkCteNoSK7hltsyxc9FyW4ZE0=; b=NKLH+cXaTmE/RyIAHdNhvWqIeHiY+XZwx8L783uCfn0Xote/Fa56EECJYBFlgS0nUy t1LDAoiR9uoUvFBb21TQ57W3NpL5Cf9ZOjw62o8HIdAEy4jvoBvjGdO44fhY50buQ3E3 qwXnwd8bKOrqjf+WXhhb1Eaq5bH68sGnHQHDn39sHZU5Lra3ynNF6bKDY2ru9QfIoCW8 RzSKbtajg3taEgQ2N/qoY/RPW3mlTnlXEY08YwuhTM/azZT7oFhsRtUwOtxRjoA/xzVV VlXmwu53HsgH1EA5HKgR+pho39bStnu5eZ++sFNjz0bLW0X4JXKFwfXGKTvtd8JR76Qe pWLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=093y63bB3YtgqKbIKttkCteNoSK7hltsyxc9FyW4ZE0=; b=h+iiRQZR5GkoePjSds280dfbV6hnsp7ydXLq8N35dfOqMR5j2EZ2UqkO9v7EnSTNdZ 1PpEzTYMNh6bwQSwliv04L6J8FLWOdbVamHBBlXuTuEtkGkMhtqQTANWewCT2tqDlQQz Fa9/Gf60dFgQsT+TpD/RjYedbOpYiS6e29LpADsg3cYMp9wtbYPLJAhJTSx+6YmBtac4 +o9fsDj6YrP5uNAx1lBgwoZcC2vXQjxQ+0MZoAn1kvz3IZGYxW8SH9HPKTGEDkwF6yV9 vYQ5CADTZgnCsc1pNKoz1VEBiiEefm7/I41YaaKraK1svoDL/8jTGDEgdaMaZ72gwE40 2LWg== X-Gm-Message-State: AOAM5314o9J8TRTkijdR1mLrZRyjr2WIPbw+XG3yD76BCX2wEudQd2J0 1UJg7mVbPADoS3lkC+x+gSxXltIvKS2VpA== X-Google-Smtp-Source: ABdhPJwgYSOEqB0zpD8Lar+O+xW4qOzq1vrmlXXFRzOBiKKwGY77y+1uK+44CYXuV3VZaCarb8ZtcA== X-Received: by 2002:a17:90b:3eca:b0:1b9:b85e:87f6 with SMTP id rm10-20020a17090b3eca00b001b9b85e87f6mr23354282pjb.132.1645406877246; Sun, 20 Feb 2022 17:27:57 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.27.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:27:56 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 02/19] python3-flit-core: add recipe for 3.6.0 Date: Sun, 20 Feb 2022 17:27:31 -0800 Message-Id: <479b42fec238a94ac1a4f8b903071667847f6bb1.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:27:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161994 This is the core of one of the "new build system" tools, although not officially part of the pypa (Python Packaging Authority) repositories, it is an increasingly common build tool (e.g. typing_extensions and tomli) as declared in pyproject.toml for said packages. This package provides a very simple bootstrapping method that builds the source tarball (build_sdist) and a wheel (build_wheel). Wheels are the official vehicle for delivering Python packages now. Eggs (egg-info) are deprecated and will increasingly go away. [YOCTO #14638] Signed-off-by: Tim Orling --- .../python/python3-flit-core_3.6.0.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-flit-core_3.6.0.bb diff --git a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb new file mode 100644 index 00000000000..4221076bc73 --- /dev/null +++ b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb @@ -0,0 +1,35 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08" + +SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11" + +inherit python3native python3-dir pypi + +DEPENDS += "python3 python3-pip-native" + +# We need the full flit tarball +PYPI_PACKAGE = "flit" + +do_compile () { + nativepython3 flit_core/build_dists.py +} + +do_install () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ + nativepython3 -m pip install -vvvv --no-index --target ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl +} + +FILES:${PN} += "\ + ${PYTHON_SITEPACKAGES_DIR}/flit_core/* \ + ${PYTHON_SITEPACKAGES_DIR}/flit_core-${PV}.dist-info/* \ +" + +PACKAGES =+ "${PN}-tests" + +FILES:${PN}-tests += "\ + ${PYTHON_SITEPACKAGES_DIR}/flit_core/tests/* \ +" + +BBCLASSEXTEND = "native nativesdk" + From patchwork Mon Feb 21 01:27:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3870 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 3F67FC433F5 for ; Mon, 21 Feb 2022 01:28:01 +0000 (UTC) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mx.groups.io with SMTP id smtpd.web09.5663.1645406880318920753 for ; Sun, 20 Feb 2022 17:28:00 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FEdlKtn+; spf=pass (domain: gmail.com, ip: 209.85.214.177, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f177.google.com with SMTP id z2so2968467plg.8 for ; Sun, 20 Feb 2022 17:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CDXACuYlMBR1fSKPg1dU6e4wfDkWA19o0vQSLU/ZYeE=; b=FEdlKtn+76TFPdP9RwYRKxKsC0y7koqAQvhMnhThOb+sFt46E4qm7VQEe1QGJVAyQ3 uSEm2OJH+kmZW1L0oCPf1l/gefXLv8gX/B/WuYE+HFxeLd4gVuJZ7dA4lQVHnpo/BgdY qrnMX/rRIIwWxRp9yYlIaRJvk6SX+UsGKZNa6T1hBWhugAQL583BBAetuCkDN+Ykk2th cDfvdN8UWlHI5kydaxcGsit3A9hpir2pc0H/aegz+R6SQp6WHx9TqvadQU1eJHdw2WPP 5x30ATBknQTbELDjON18IMS6aNhsu0GqGUrCJc8Lg7iBkNuQqw4xGBqfrMNbK7dR4y6Z t92g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CDXACuYlMBR1fSKPg1dU6e4wfDkWA19o0vQSLU/ZYeE=; b=gyMYsVWOgzzBXRSv+MCXdM7q1jeVPRrP5E2HBVG+OIVzYLivH8/RHFgVes9l/K5JD5 V5wNZuxyZsR4bTyZmCpffS4sGiaXUChmFuQvmFRpK3JUVurP+QJZuGYPCB0CroZgwQq8 kEdc5/9aiK/mnzMScUhiFv7x+ZuY8zX5Jvbyx1jhmrrG7bEZaMjsDljQbe2TYdRW17/7 i4pvv0A3Wn28UFu5qQtWEPS+yaVnBwWRo8wPlVAZr14HCiKn7w7OpZM/LZ0g3qSEuKRR lOM9qtWwIvfkw3QmZRy6Cz62eYVyz0YsMoLPr1gvhzMBmIgTGmvWJzq6qaPNOcevJy5E tRnw== X-Gm-Message-State: AOAM532IC1Ivffbf1H+ju8C9qwOeuz7YxAkb3cv6J33/fTZ/pqD0gju7 DrcZAQoKKp58ADLZo11J6yMDzw3EIef9/A== X-Google-Smtp-Source: ABdhPJwtcK0zbzcOezJJUet62mHtMEKQXOhMov0TqcAx0TDww9ex9BURoq4CHbZ/5LMkd7rm07FZdw== X-Received: by 2002:a17:90a:c706:b0:1b8:a942:3e36 with SMTP id o6-20020a17090ac70600b001b8a9423e36mr19044055pjt.40.1645406879410; Sun, 20 Feb 2022 17:27:59 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.27.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:27:58 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 03/19] python3-flit-core: simplify Date: Sun, 20 Feb 2022 17:27:32 -0800 Message-Id: <94ec7ed393b8d1eb8c0c6c2654e449e02e073131.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161995 Upstream provides a build_dists.py which can be used to bootstrap building of the sdist and wheel. Bootstrap -native by simply unzipping the wheel to PYTHON_SITEPACKAGES_DIR. Use pip to install the wheel for target. [YOCTO #14638] Signed-off-by: Tim Orling --- .../python/python3-flit-core_3.6.0.bb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb index 4221076bc73..d0b88c3fa50 100644 --- a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb +++ b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb @@ -3,9 +3,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08" SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11" -inherit python3native python3-dir pypi +inherit python3native python3-dir pypi setuptools3-base -DEPENDS += "python3 python3-pip-native" +DEPENDS:append:class-target = " python3-pip-native" +DEPENDS:append:class-native = " unzip-native" # We need the full flit tarball PYPI_PACKAGE = "flit" @@ -17,7 +18,12 @@ do_compile () { do_install () { install -d ${D}${PYTHON_SITEPACKAGES_DIR} PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ - nativepython3 -m pip install -vvvv --no-index --target ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl + nativepython3 -m pip install -vvvv --no-deps --no-index --target ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl +} + +do_install:class-native () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl } FILES:${PN} += "\ From patchwork Mon Feb 21 01:27:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3871 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 1A268C433F5 for ; Mon, 21 Feb 2022 01:28:03 +0000 (UTC) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mx.groups.io with SMTP id smtpd.web11.5722.1645406882377524157 for ; Sun, 20 Feb 2022 17:28:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SdCzyiD7; spf=pass (domain: gmail.com, ip: 209.85.214.180, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f180.google.com with SMTP id c3so1969014plh.9 for ; Sun, 20 Feb 2022 17:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CfHg4DcEJtMZA8euboN687Jj3f+GOy7LRl/b0rjXE5E=; b=SdCzyiD75yDlyOzLNiawKpZeaU34e8GQhoobQip/GXWcd+rx6GVvnzbB8ZJZOPAMmn 3Scn3WOOF7L9pnbMAi8LzMK3Y7oPLMF5eBt70o1UossCg6MtYDV6wlOFbQIljmUnCPYi 4AYmvi3iY4uhjbomKDRvWiV1DRdIa4FALw+IAPmdrJxE326oz3StfyDmW5u1JEnHgv2t POQlHBMOIY2fixZ/bZ459115W17Vj50+aiKilwTQ11s0VRCH7MIJ0nLJnS8ig8LNpJGG Za/GqWd85nwV6K99rvC2IqO7MnZbWrswdYwKHy92iJWdZnLJUMH2JWZft7s3BoL18L3D UGfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CfHg4DcEJtMZA8euboN687Jj3f+GOy7LRl/b0rjXE5E=; b=tEGhTYEWBPmqOz5o6zlteaT1gsfUhK62+BVPpivAgd0bkw7aEgavnzYGrmnq9fnidk Ib56wFhhLHNPxXRb7JImvn9ZJboWHGCneBS2nwDR+BQl5IXer+baafp4vYzIlwfOokNw tLRN/sG8u2EUbxaNXQ9JtaMurcZioZ+U3NM4v4lqlwrQB4LJPtd6860kBhwDvm5g0ySS BAMJSeQw5f8Z2uuaHDE/xfY9FmRDUB7MbvnI/gJZpQ6lg4HVbD1TbQqda1ltM6EPv4By YD9bwFPed+4x2RHV5Yz0TRmDNb1iHHRYQt1P06Z1k5lNBGJ6LIsUGw690d3XAUD2bOhB SMXg== X-Gm-Message-State: AOAM5322WLstaDeAUR4W0vdZl3Po544+ane8VSy1ZzjcJE5x4eQKVOo4 6XvDfbQ3qITOgb44mizKEOeuaprHDmoAAg== X-Google-Smtp-Source: ABdhPJzofj4L8XPmAKXkgzIzcWNLtuR6ves/mtncApXNJ1Bz4p1IsISWaqPDxFUFS5MCfsh0uoz/+A== X-Received: by 2002:a17:902:ec90:b0:14f:686a:7558 with SMTP id x16-20020a170902ec9000b0014f686a7558mr15126291plg.31.1645406881475; Sun, 20 Feb 2022 17:28:01 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:00 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 04/19] flit_core.bbclass: add helper for newer python packaging Date: Sun, 20 Feb 2022 17:27:33 -0800 Message-Id: <37f0e8398b27811d52d7866b867732d965133f09.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161996 Some python packages now use pyproject.toml and declare flit_core.buildapi as the build engine Use pip_install_wheel class to install. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/flit_core.bbclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 meta/classes/flit_core.bbclass diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass new file mode 100644 index 00000000000..0f2eec85d0b --- /dev/null +++ b/meta/classes/flit_core.bbclass @@ -0,0 +1,16 @@ +inherit pip_install_wheel python3native python3-dir + +DEPENDS += "python3 python3-flit-core-native python3-pip-native" + +do_configure () { + mkdir -p ${S}/dist + cat > ${S}/build-it.py << EOF +from flit_core import buildapi +buildapi.build_wheel('./dist') +EOF +} + +do_compile () { + ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py +} + From patchwork Mon Feb 21 01:27:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 14171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org From: "Tim Orling" Subject: [PATCH 05/19] python3-wheel: inherit flit_core Date: Sun, 20 Feb 2022 17:27:34 -0800 Message-Id: <5bbbe338aaaf1628439f7fec51fd75e984cfa5e1.1645405471.git.tim.orling@konsulko.com> In-Reply-To: References: MIME-Version: 1.0 List-id: To: openembedded-core@lists.openembedded.org Backport pyproject.toml from flit-backend branch. Inherit flit_core class to build Inherit pip_install_wheel to install wheels for target We need to bootstrap python3-wheel-native in order to have bdist_wheel available to python3-setuptools-native and the refactored setuptools3.bbclass. Simply unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] Signed-off-by: Tim Orling --- ...roject.toml-from-flit-backend-branch.patch | 100 ++++++++++++++++++ .../python/python3-wheel_0.37.1.bb | 16 ++- 2 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch diff --git a/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch b/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch new file mode 100644 index 00000000000..023de0e6a88 --- /dev/null +++ b/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch @@ -0,0 +1,100 @@ +From f00dd220346773bc088d403847ee7f06f2b4c30a Mon Sep 17 00:00:00 2001 +From: Tim Orling +Date: Fri, 18 Feb 2022 11:09:16 -0800 +Subject: [PATCH] Backport pyproject.toml from flit-backend branch + +This allows us to bootstrap wheels and PEP-517 packaging. + +Upstream-Status: Backport from flit-backend branch +https://raw.githubusercontent.com/pypa/wheel/4f6ba78fede38a8d9e35a14e38377a121033afb3/pyproject.toml + +Signed-off-by: Tim Orling +--- + pyproject.toml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 78 insertions(+) + create mode 100644 pyproject.toml + +diff --git a/pyproject.toml b/pyproject.toml +new file mode 100644 +index 0000000..749b8de +--- /dev/null ++++ b/pyproject.toml +@@ -0,0 +1,78 @@ ++[build-system] ++requires = ["flit_core >=3.2,<4"] ++build-backend = "flit_core.buildapi" ++ ++[project] ++name = "wheel" ++description = "A built-package format for Python" ++readme = "README.rst" ++classifiers = [ ++ "Development Status :: 5 - Production/Stable", ++ "Intended Audience :: Developers", ++ "Topic :: System :: Archiving :: Packaging", ++ "License :: OSI Approved :: MIT License", ++ "Programming Language :: Python", ++ "Programming Language :: Python :: 3 :: Only", ++ "Programming Language :: Python :: 3.7", ++ "Programming Language :: Python :: 3.8", ++ "Programming Language :: Python :: 3.9", ++ "Programming Language :: Python :: 3.10" ++] ++authors = [{name = "Daniel Holth", email = "dholth@fastmail.fm"}] ++maintainers = [{name = "Alex Grönholm", email = "alex.gronholm@nextday.fi"}] ++keywords = ["wheel", "packaging"] ++license = {file = "LICENSE.txt"} ++requires-python = ">=3.7" ++dependencies = [ ++ "setuptools >= 45.2.0" ++] ++dynamic = ["version"] ++ ++[project.urls] ++Documentation = "https://wheel.readthedocs.io/" ++Changelog = "https://wheel.readthedocs.io/en/stable/news.html" ++"Issue Tracker" = "https://github.com/pypa/wheel/issues" ++ ++[project.scripts] ++wheel = "wheel.cli:main" ++ ++[project.entry-points."distutils.commands"] ++bdist_wheel = "wheel.bdist_wheel:bdist_wheel" ++ ++[project.optional-dependencies] ++test = [ ++ "pytest >= 3.0.0" ++] ++ ++[tool.flit.sdist] ++exclude = [ ++ ".cirrus.yml", ++ ".github/*", ++ ".gitignore", ++ ".pre-commit-config.yaml", ++ ".readthedocs.yml" ++] ++ ++[tool.black] ++target-version = ['py37'] ++extend-exclude = ''' ++^/src/wheel/vendored/ ++''' ++ ++[tool.isort] ++src_paths = ["src"] ++profile = "black" ++skip_gitignore = true ++ ++[tool.flake8] ++max-line-length = 88 ++ ++[tool.pytest.ini_options] ++testpaths = "tests" ++ ++[tool.coverage.run] ++source = ["wheel"] ++omit = ["*/vendored/*"] ++ ++[tool.coverage.report] ++show_missing = true diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb index 6c7a31db9e7..c7354c9d982 100644 --- a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb +++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb @@ -6,7 +6,19 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a01 SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" -inherit pypi setuptools3 +inherit flit_core pypi setuptools3-base -BBCLASSEXTEND = "native" +SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch" + +DEPENDS:remove:class-native = "python3-pip-native" + +do_install:class-native () { + # We need to bootstrap python3-wheel-native + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + PYPA_WHEEL="${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" + unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \ + bbfatal_log "Failed to install" +} + +BBCLASSEXTEND = "native nativesdk" From patchwork Mon Feb 21 01:27:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3872 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 2A224C433F5 for ; Mon, 21 Feb 2022 01:28:08 +0000 (UTC) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx.groups.io with SMTP id smtpd.web11.5724.1645406887198258621 for ; Sun, 20 Feb 2022 17:28:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KGMF05tb; spf=pass (domain: gmail.com, ip: 209.85.214.176, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f176.google.com with SMTP id c3so1969109plh.9 for ; Sun, 20 Feb 2022 17:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=w5vYj4dN8/6RAb6stdS86RKrgkFXRw63eHj4LIq40QU=; b=KGMF05tbLDW/s+TnXG++CPjIHxAGxBkeHCABsZs/24jxHkUHdVjIje8wDOMshn6SQp vSHDU6Vzc/mSr25GBcebYHdALdmsJR2dvnsX9HOHwUlxibH3Vvzbaxu7/RHHFBEI4cRB O4nF/sGf+v69huzKbWs+OQGGr3yq3WxUm7YhnZWOvvBe5Ebd/Sw41HjNOzqJWAh8DG7+ Nx3oDB+kr06sxFA29DD6aAWl5B3u7l7VGQCNSIBVov3yZmyAcetI50/aFrteTq4Ufiy7 0xrOOk9AM7KNaRcZsMZPfu6oXY/CwYuKzB4YY/dYA+rC1QLcEj+3FUm8uTxCiLGNnW62 AKwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w5vYj4dN8/6RAb6stdS86RKrgkFXRw63eHj4LIq40QU=; b=GXxTqcqoTcXOXgOa8rns6yJbdqQ2eG79BIqrxO/llfswthUH9zLPo8eQD6hRcPTHVf pwNnjYcIJ37JrxsvBRNH37BmXiDVoo55mRh2UcD93VnJvPVzItg0b4zF1oCA9RHfojRt BjKRB+GMQH7DbRHxHa7YYIPBUyfv9owLg8B0m7BleSfRfe+N/Cg+j/AeBFSiIrRnwJ4o MrfCPx1poEW5pTCPtrCDYFLeBNQhkTRs+gPEhAtwjfXE/7DQon6NOhZQpYXBxcrstX7Y /ZFSOQ4sAAjAGkI/M7SzoyDQ/7R3tNxUG7d2lHYoJ5bB0eJ+XLSkAzQulIk12xE+UyK1 Z/Uw== X-Gm-Message-State: AOAM530rM6JXLYNGl3k5/gsm/VCMlqNgag/zlwPX4aSa53MgbqCP80PK n1CBPVbtGrZfR3Ro+inb1tu1Dc5Vj4iDOw== X-Google-Smtp-Source: ABdhPJzyT4O0dWhGf+WloMnfM/iI1Heg9lkBBTXiCMvXm8on87OGyzd3BGoo4LwqvH6fF8LZuO+6+g== X-Received: by 2002:a17:90b:28f:b0:1bc:299d:39a8 with SMTP id az15-20020a17090b028f00b001bc299d39a8mr4503844pjb.37.1645406886301; Sun, 20 Feb 2022 17:28:06 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:05 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 06/19] pip_install_wheel.bbclass: add helper class Date: Sun, 20 Feb 2022 17:27:35 -0800 Message-Id: <9104cb801378efce74bc32462816fe885b4bcb7f.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161998 Provide a helper class to use pip to install wheels built by either bdist_wheel or a PEP-517 backend. By passings --no-deps and --no-index we avoid finicky dependency checking (pip expects wheels in its cache) and avoid trying to fetch wheels from pypi.org. This is basically the same behavior we have now, the dependencies should be declared in the recipe. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/pip_install_wheel.bbclass | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta/classes/pip_install_wheel.bbclass diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass new file mode 100644 index 00000000000..e6a6801227f --- /dev/null +++ b/meta/classes/pip_install_wheel.bbclass @@ -0,0 +1,18 @@ +DEPENDS:append = " python3-pip-native" + +PIP_INSTALL_PACKAGE ?= "${PYPI_PACKAGE}" +PIP_INSTALL_DIST_PATH ?= "${B}/dist" +PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-${PV}-*.whl" + +pip_install_wheel_do_install:prepend () { + install -d ${D}${PYTHON_SITEPACKAGES_DIR} +} + +export PYPA_WHEEL + +pip_install_wheel_do_install () { + nativepython3 -m pip install -vvvv --no-deps --no-index --target ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || + bbfatal_log "Failed to pip install wheel. Check the logs." +} + +EXPORT_FUNCTIONS do_install From patchwork Mon Feb 21 01:27:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3873 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 1A07AC433F5 for ; Mon, 21 Feb 2022 01:28:10 +0000 (UTC) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mx.groups.io with SMTP id smtpd.web10.5694.1645406889601938970 for ; Sun, 20 Feb 2022 17:28:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oYQOqg9k; spf=pass (domain: gmail.com, ip: 209.85.215.175, mailfrom: ticotimo@gmail.com) Received: by mail-pg1-f175.google.com with SMTP id 27so7717066pgk.10 for ; Sun, 20 Feb 2022 17:28:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=m3gEm37hQFtUD3Ua9/H4cKIM7eBOc/uatVaNihsgMRE=; b=oYQOqg9k2B3mfCGy/oW+wH/VYGFr6kganvPTX7njR2+uDmhr8gnVfwxXCXtbuApiPd rQXVRVsxzrGcaAaURuCd9SjwdT1gFu86UnEC+8yahUU6uFNKSRamx5p6JWkkIeE21kyF pGFNUzaG8UNS7uHWQj4SZRv3DONwHZ23vo1GZI7iPXlLT1z5aDByUl8LAJdvhZyLvI1V TV7JtYt2tF9tYjJyJWz33AxLQ6N0qJX/ua9kkV/X540tRxgZ690fwBZ7zC28MjlcWRgo wLKfFGER9th26stn4f8QidTBXSmyDgI0FxRYtPxWFgYhJet9jTztfapvdwZBPA4oSLUo 8rFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m3gEm37hQFtUD3Ua9/H4cKIM7eBOc/uatVaNihsgMRE=; b=E/O34ppCl8ThFKHpOOymIvx0pHVhuYO1JHKVgJVGdt+HV43p6d4NFqh+qz4zBzZULc BBjksS3HYJ7PXs7HT5l5LSDcMT74rVlui4rMKJSy+z18ZlOzKf2PKNWoVs8zLLKPOsOz UMqmfl661DBEMGUnDOr2Q400/zX8Q4MkPZhm/qBufSANyw1XT0fCNrC+VcrBzIuNtHl7 RzQWMaZi+azCcNDXdNxyy3qBMB1V4vpeg4Kc8zxMnum10h364aF+iMJOvJ/MKaC8ErfU 6h1HwxLuW9WJbnelQN7CEdZfJv94mUjI+XqHcvwASPz85E8pDoONHmIWQB/6ISTrt3tr KOQg== X-Gm-Message-State: AOAM530kUgMX63kdmc5ClvVoOqJRXod50cPtju9UeINxppkcrHHKziNZ QXO3GjhWzleHCcYHDgRdxraAmYHRUDALAg== X-Google-Smtp-Source: ABdhPJzWwbpkrXyhUcr36eXemNflWAJukPlZRWXTXDAleyr4dJtIaWWvEImDfIci/EwXKbv7cEAV1w== X-Received: by 2002:a63:2d44:0:b0:34b:3f1b:952a with SMTP id t65-20020a632d44000000b0034b3f1b952amr14229569pgt.522.1645406888728; Sun, 20 Feb 2022 17:28:08 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:08 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 07/19] setuptools_build_meta.bbclass: add helper class Date: Sun, 20 Feb 2022 17:27:36 -0800 Message-Id: <5fa6b209a9e8cfffeb59f5597224ce5994bae3c6.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/161999 This class uses the PEP 517 compliant setuptools.buil_meta to build wheels. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools_build_meta.bbclass | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta/classes/setuptools_build_meta.bbclass diff --git a/meta/classes/setuptools_build_meta.bbclass b/meta/classes/setuptools_build_meta.bbclass new file mode 100644 index 00000000000..b1441e65dd5 --- /dev/null +++ b/meta/classes/setuptools_build_meta.bbclass @@ -0,0 +1,18 @@ +inherit pip_install_wheel setuptools3-base + +DEPENDS += "python3 python3-setuptools-native python3-wheel-native" + +setuptools_build_meta_do_configure () { + mkdir -p ${S}/dist + cat > ${S}/build-it.py << EOF +from setuptools import build_meta +wheel = build_meta.build_wheel('./dist') +print(wheel) +EOF +} + +setuptools_build_meta_do_compile () { + nativepython3 ${S}/build-it.py +} + +EXPORT_FUNCTIONS do_configure do_compile From patchwork Mon Feb 21 01:27:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3874 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 1B0E4C433EF for ; Mon, 21 Feb 2022 01:28:12 +0000 (UTC) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web08.5733.1645406891801762167 for ; Sun, 20 Feb 2022 17:28:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AwWtVYAs; spf=pass (domain: gmail.com, ip: 209.85.216.52, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f52.google.com with SMTP id v4so13648970pjh.2 for ; Sun, 20 Feb 2022 17:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=+2yZqy1fr8VRrMm5t1aaeg8fe6/bYZp2vjxWfBh45BE=; b=AwWtVYAsP2emjXsgLtuXxelGO4UEkQPOTY6uR2iLs24FFZdV+j1m6X0Hj5wh61SD5v CDSadAUzTKehKmSZ8YvhgWDsBNUzrrAR9xwzujQLXW/esK2/0/2HioZn+CrNs93cx0PY 02vGAFK5hPdK+QpaGXsyRPx7deDKdVfURgKBrKx93w1jNLb1LC7DMpctQwF64Mk4knMl wCpvoXxy8rQTBVeOcgwneVlom2GNKeE+dDHLsm46Z2gLtz1+wVybpbvvpSBpj8Z/sOut FG9sxaIyuHJlFmOt5X27vXyAHnGRVrypi3KOBOM2rhoVkkKS4iQW4ixFRMA5xM8T/GYx XE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+2yZqy1fr8VRrMm5t1aaeg8fe6/bYZp2vjxWfBh45BE=; b=63nvfxn6xW4NNLUAG5dXHVRnFc9rRAOSJa9M0oFzor7Qhtq/gDsx/fa+FHpsAaN2E3 PU73JIG08VjwxQAjYLmb355dNW1dKWqMaaryK6PaTYMiDG7G2hFP9jwhOb6qWYCknm5k pOswSb6UN3KQ8AgT9nYcD0r2924E/9Vs10uq7/dicWHUCncIQXkA3v6RqCL7ZdeaAGaF zC0SAhOYaTatouIpoSLetmjJIpSwifVwKh5ds2o3zJlOndM3rB28w4wivcJJBMKFHiOW 4c6NB1ogFXQIuTcz76vN098P3T6tV/bCad++1aWtko7QRz8FY0YsteIfRcYMvmey+yOp Zlcw== X-Gm-Message-State: AOAM5336frZGWDi6gqZCnG3MMTu0NtRH2adBYRzy8EX2XLpxXCCIRSbv C2fdeAF/hagrmEAnlr1HTyiBwluvvzHXGg== X-Google-Smtp-Source: ABdhPJxUiGtvyttALjFt28umQ/3SKmk0LIebxvsmpeLrq0EJvRjaQ9jvqU9qnk0td3lyf3QBEFzX2w== X-Received: by 2002:a17:90a:67c9:b0:1b9:51d5:6c13 with SMTP id g9-20020a17090a67c900b001b951d56c13mr23239906pjm.216.1645406890865; Sun, 20 Feb 2022 17:28:10 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:10 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 08/19] python3-pip: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:37 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162000 Upstream provides a pyproject.toml which declares setuptools.build_meta as the backend for PEP-517 packaging. We bootstrap the -native installation by simply unzipping the wheel to PYTHON_SITEPACKAGES_DIR, so that all other recipes can use pip to install wheels (as intended by upstream). [YOCTO #14638] Signed-off-by: Tim Orling --- .../python/python3-pip_22.0.3.bb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb index 889a6bf8adc..482a210ee99 100644 --- a/meta/recipes-devtools/python/python3-pip_22.0.3.bb +++ b/meta/recipes-devtools/python/python3-pip_22.0.3.bb @@ -4,17 +4,32 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=63ec52baf95163b597008bb46db68030" +inherit pypi setuptools_build_meta + DEPENDS += "python3 python3-setuptools-native" -inherit pypi setuptools3 +# To avoid a dependency loop; we bootstrap -native +DEPENDS:remove:class-native = "python3-pip-native" +DEPENDS:append:class-native = " unzip-native" SRC_URI += "file://0001-change-shebang-to-python3.patch" SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0" +PYPA_WHEEL ?= "${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" + +do_install:class-native() { + # Bootstrap to prevent dependency loop in python3-pip-native + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \ + bbfatal_log "Failed to unzip wheel: ${PYPA_WHEEL}. Check the logs." +} + do_install:append() { # Install as pip3 and leave pip2 as default - rm ${D}/${bindir}/pip + if [ -f ${D}/${bindir}/pip ]; then + rm ${D}/${bindir}/pip + fi } RDEPENDS:${PN} = "\ From patchwork Mon Feb 21 01:27:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3877 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 1B7BAC433EF for ; Mon, 21 Feb 2022 01:28:22 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by mx.groups.io with SMTP id smtpd.web08.5734.1645406894063210710 for ; Sun, 20 Feb 2022 17:28:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PUbjUQlM; spf=pass (domain: gmail.com, ip: 209.85.216.42, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f42.google.com with SMTP id om7so13603941pjb.5 for ; Sun, 20 Feb 2022 17:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=EMGj9MC8SPyFqxQziGiTsoHsvLOOfG3kpD8+GHqh4+k=; b=PUbjUQlMX5dbZSrSkAW+R/rEQlM+BAJeb/cKYMwOJuCAfPfB0s2yXlFLKx90DyB+WS 1tT7EERDuXHTM4bn/ezNhK6K4gZqMuLcx5XGJApsChDlXi03MLzsWj89roHhk6g+miBX AyLj64J7fCUIr6tkd1HPHzeN329bqJTvnsHZoejBwkyJcE5guQOBCDg3qv9Z2xj7uJqc 4LoMl02TrZSyqkBpoupPzer70yJqWgfYV3CAzKoD4+/XsR4YBdMIWstVdxQumP0vWNQv QcBfATkgXFIpaV+ZI9qZHvJisD8T2P13SOSZ6xQEzuKpBFLB5giBrSuYE6vDnkoNs8vx atXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EMGj9MC8SPyFqxQziGiTsoHsvLOOfG3kpD8+GHqh4+k=; b=JWWack7Hzy0TC9obDMv73CzsV70vv6AbPVpVeqKDZdHRrMwRGRbgT3lsDW8l6OxqZT 6j3SozPF1UksksMmRLN4BhKZXlJpbCNiAVbGV1L51L+97AnY/V+3T/ytWXRluir7q8sM u357MyQZN996dLufzK2wIWOp8f0xK8EmnhVKSB1JDUn8Z8h5dFuaXKQnCBB0JJBNzDCk 09tQ+8DMB1mGf/nZJDp98NIqp14q+5uBNdaTtZ4hvmJX162Z3tDurSDt6DNrrJthq87r Mdnbvto+kmLqG4A/4XnNwognm+pqv4RYpdO20XEXaFf7YlGkTNDsbdxUjJ2tQY3OgnKm zb1w== X-Gm-Message-State: AOAM533Xuets4SA7/QmKq6Oh2aetcaRdqJjhgNUQoJiJ0+7jvyBQIwL1 u2Vj31jXBT0X1WojcsXFL1oRyipu5Gt+tQ== X-Google-Smtp-Source: ABdhPJzciscG38jpisEFYbx/nhqk7zviuufvRsBuU/hn5ZYaHgWijO4bJ+ZjT+9zudGVeeklhIAjcA== X-Received: by 2002:a17:902:c111:b0:14f:c841:66e2 with SMTP id 17-20020a170902c11100b0014fc84166e2mr744081pli.92.1645406893209; Sun, 20 Feb 2022 17:28:13 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:12 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 09/19] python3-attrs: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:38 -0800 Message-Id: <4a4023d1925e357a0b3adef48af93fa06e04f3e6.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162001 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-attrs_21.4.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-attrs_21.4.0.bb b/meta/recipes-devtools/python/python3-attrs_21.4.0.bb index d1dde29d376..20e4541f81c 100644 --- a/meta/recipes-devtools/python/python3-attrs_21.4.0.bb +++ b/meta/recipes-devtools/python/python3-attrs_21.4.0.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff" SRC_URI[sha256sum] = "626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta RDEPENDS:${PN}:class-target += " \ ${PYTHON_PN}-crypt \ From patchwork Mon Feb 21 01:27:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3875 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 332A9C433F5 for ; Mon, 21 Feb 2022 01:28:17 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web09.5667.1645406896087438427 for ; Sun, 20 Feb 2022 17:28:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZUcnm+C7; spf=pass (domain: gmail.com, ip: 209.85.216.43, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f43.google.com with SMTP id b8so13616587pjb.4 for ; Sun, 20 Feb 2022 17:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=oJCncBKA5qbLLBPKiBc4Tm+G6oyg4F90VBwS2JXToE4=; b=ZUcnm+C7dDBafjQxBfcQ3Ovf+f255gKpDlQAqn5fGOdbKjXmKO8zzXvmHQpZ8mY3gP H4532iwnbgkwhs6uoDes2I0BKJo5bCR67uw6OPXEIvki2IN+Qp2L9KBFLWAszjtdsjG+ 7fGZd5FmrC1PybgDRYYW3DrQfas8+sXoUqYYi4rlQ3Gk0fD6OZ9ZpAsBsbP0IyatKNW6 teGg4QI3j/TkeDE3wyWRYdBr2TRl2aIyq4i5Z8Ct1CO9cMhPiKYdycDxsgmUyimMivRH koAX6fnzxyoJawsnW6o2oI1h4OswGk/8DrqQBtSLavyfQYLDtDNcLQhggao6S/K/Vc9U OPCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oJCncBKA5qbLLBPKiBc4Tm+G6oyg4F90VBwS2JXToE4=; b=ijS3o5l7IUAxSF4ASq4SH8AXif2eLTpQM4E+X3fSxwWjyAbnEZ2zgquX2HacS9vXfQ W49beHxtr/AD5B+TaMYG8zl5/VpUcjne/5FjKvohAFO6Ik1+ZnAmfMJiDo0RhQZvSot9 MbP9k5NQw5JVWvb9BIUyWNJLua3OX7K/fj6LPyLvYx4UaIM8IXRF4XhKyx6yNiifbN0H rDmGYiU5xnU2ILb80WeBlR/67b5kUszWgL5B145iOfm3jyco5wfcX34ZGwcsDqiTAO7o tCZwn+lPZRmXXVwfoUWuVaYdK+oYbCxzvRt6VrKy9v90vxRCMjdBPFrZPuNNsymBZBKH V21g== X-Gm-Message-State: AOAM531CxuemkkraNoAckzx9aYXhkMDnQN/dgOtQKHcDol0T0sL1OLkj LdWPCtrT4BRlog4WJ0ReH2lGJK8A1emD8w== X-Google-Smtp-Source: ABdhPJyo2xz4OOtdt2RRqY7k9GMpsmVaghmh2iE4QRSYYgkOgeKKZabscMOZeI6Ta7q3kLwqOjB++A== X-Received: by 2002:a17:902:f60f:b0:14d:7ed3:dba9 with SMTP id n15-20020a170902f60f00b0014d7ed3dba9mr16624216plg.33.1645406895107; Sun, 20 Feb 2022 17:28:15 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:14 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 10/19] python3-git: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:39 -0800 Message-Id: <322156d89d5b7d284505812b02c6b42459ed3cea.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162002 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-git_3.1.26.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-git_3.1.26.bb b/meta/recipes-devtools/python/python3-git_3.1.26.bb index b6171a0e4d1..8f4b13cc15d 100644 --- a/meta/recipes-devtools/python/python3-git_3.1.26.bb +++ b/meta/recipes-devtools/python/python3-git_3.1.26.bb @@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8b8d26c37c1d5a04f9b0186edbebc183" PYPI_PACKAGE = "GitPython" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta SRC_URI[sha256sum] = "fc8868f63a2e6d268fb25f481995ba185a85a66fcad126f039323ff6635669ee" From patchwork Mon Feb 21 01:27:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3878 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 2196EC4332F for ; Mon, 21 Feb 2022 01:28:22 +0000 (UTC) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mx.groups.io with SMTP id smtpd.web11.5729.1645406898295613853 for ; Sun, 20 Feb 2022 17:28:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OjWavFDG; spf=pass (domain: gmail.com, ip: 209.85.210.169, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f169.google.com with SMTP id p8so7319766pfh.8 for ; Sun, 20 Feb 2022 17:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dNLGngtey9WED5VQilqdbHjZhWopBluU8AH/DrKJCho=; b=OjWavFDG0sTfZgVPGmqMfhZbdXd5E07C9vjtEvyRj2jkKOSyd2Embiytuz/XsbQiOH ejx/0KOD6+2pFqRqKVxZrReTySEGyFuHyhpH2Jl3lXVkUDGxzkf1oTIiMjyv+k6LOY1q 7VDjCIUa7Bxmv7N1r4lGEP9Cw+2TNy3qa6uNgxP8enW6MA4OL+ODqq8zrUkBGU1uaOM7 JvwnKzxHcJj4fObeuPPlzHCJLtLSnVz+slIsOGu5zoDzVb4wJUyOvc+95xf6Cm3jEUJs sk82D0l9TcpZiOBggNiy8M0/K62TYoOQOYmNp3n1UbRwl6yHXiS9dYa4/UtrVzuxqJV7 3KhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dNLGngtey9WED5VQilqdbHjZhWopBluU8AH/DrKJCho=; b=A102VjGF6xxp4FZiT8mvyAVSb6ww6CO6EGd9d/NaAesnwsiefjIXEOmdOmiiPLgCLf lcICzR35mccf6PO9pIi44Ypu5EuSqDayrL3ERz1XzFgCexGgacn7F3AnnYTrLbyNALeb JAD6C87XvDfWQhLRTTfqWIfkoUKa2HZQ+50ByYREs7YhW3frP9Qt9bkQqJS+Lto+o5dI mDOC6wjsBNwJeZiX1eYV1njUL+AcsWaWpY1+AkGfMDo1qqGA4dre0dGazNZHVJTYsiMm 2+FqMID5BGj885D6LBHMo5cjCZhTQxcI8ujPbAK6l6z881LXW3jz/SpsLfxSaPDZBY8G gtKw== X-Gm-Message-State: AOAM533LWzoQDjm0LyeRaRwCV0QeJkuMaCnqLwFF1lNd+RnoH1iOyP/z Ug/1qoUhSSX70gAftx96vCfkjrkcW9eqBg== X-Google-Smtp-Source: ABdhPJyVpgxxEoYHkH25hJFow5oZGB1qVUI8SqKXCsEpsh40Lhu0p7JiYrMUXwTAlcgW+CGkBWNofA== X-Received: by 2002:a63:f555:0:b0:373:9ad0:ca08 with SMTP id e21-20020a63f555000000b003739ad0ca08mr14292308pgk.315.1645406897365; Sun, 20 Feb 2022 17:28:17 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:16 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 11/19] python3-pytest: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:40 -0800 Message-Id: <79e409c48bc68e918a5a7522788c3f6c3f8d1807.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162003 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pytest_7.0.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/python/python3-pytest_7.0.1.bb b/meta/recipes-devtools/python/python3-pytest_7.0.1.bb index 25014064890..ea6ba80300a 100644 --- a/meta/recipes-devtools/python/python3-pytest_7.0.1.bb +++ b/meta/recipes-devtools/python/python3-pytest_7.0.1.bb @@ -7,9 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=bd27e41b6550fe0fc45356d1d81ee37c" SRC_URI[sha256sum] = "e30905a0c131d3d94b89624a1cc5afec3e0ba2fbdb151867d8e0ebd49850f171" -DEPENDS = "python3-setuptools-scm-native" +DEPENDS += "python3-setuptools-scm-native" -inherit update-alternatives pypi setuptools3 +inherit update-alternatives pypi setuptools_build_meta RDEPENDS:${PN}:class-target += " \ ${PYTHON_PN}-atomicwrites \ From patchwork Mon Feb 21 01:27:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3876 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 1C1FBC433F5 for ; Mon, 21 Feb 2022 01:28:21 +0000 (UTC) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web09.5668.1645406900539890564 for ; Sun, 20 Feb 2022 17:28:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c5UXGnTG; spf=pass (domain: gmail.com, ip: 209.85.215.170, mailfrom: ticotimo@gmail.com) Received: by mail-pg1-f170.google.com with SMTP id 12so9379247pgd.0 for ; Sun, 20 Feb 2022 17:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=MbFM/lfHIRRkVJn+qCVJ397jXTQm8/CrUAmSQXaYRLw=; b=c5UXGnTGzzmROoIaxrmVQL0h9br86Wyr+dFTndl0BZi4oI4X8rqxVoXuE798w2rcL1 fDzSMiAuN81BU/13ME1cUfkar+gtMGTzqp61WxicOrEMblzbu09h3CV41kQv1K7sMXgj gq1IoyO4EYGafXkhQkMeF8lg6VbAbxpEAAfFvH0YehnIdspxTRtMrHRBDfPX5Mx+iH80 eK1IiwH9AjNeOcl17MDvoWzWTXN3/TZdSWlQizElLu3dG9zVifjr7IH/OiQw45FGTANJ j++IRfCc8iTbSW51iWoN7D+FMXtoVHDPVCxmTvDQwg8mK1Hcn1xnInjQrim4IMmovrd6 zRKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MbFM/lfHIRRkVJn+qCVJ397jXTQm8/CrUAmSQXaYRLw=; b=ggNG63NV3gY+YFPUhlrjyfP0JZ9COWySITWGsNHnNIDmAW5MZ1RfWEz61Nx//LjO5B AcDTsMlJ+GEEGGqM3FbDh9EB1PmFUpK0VTXAr3/jsncE5k8+m5w9H7SnLYv6iHhDbDUU E8NLtOOpmhiV9EgJtzR7qUvXBKfLPD0Svc8MFqfrXGc2/MCs6JTGULwWAgpEFQgrVOO6 M+n2T8SCXs0ytvSpqcf4381PCxK8uzStNdkDwQLK2t61rH3h64uyYbCzPLEWkqBSNkc6 yX5ggXvXORRnJk7cXJZLR9YmwVQj+oRIUkdoolDdIkrMzuUaWKuOe4ossgJRm/+QTjZK D2qA== X-Gm-Message-State: AOAM531n+QDktbxHmCUTStNJnwFyCVUApe6s91CfOmdpY8leSGCByqaB s8tMQ9AWZMqlVbcgAqXn3M9+5KQkLw4Hog== X-Google-Smtp-Source: ABdhPJy9HAyWU/VVHpFtRy6SHhjOMMTbRV3NsgSTO3gozw4IiYqA1jzgBX3OnP6IO+yT5ChTQ/rCkw== X-Received: by 2002:aa7:94a3:0:b0:4e0:1c98:1e3b with SMTP id a3-20020aa794a3000000b004e01c981e3bmr17690193pfl.72.1645406899626; Sun, 20 Feb 2022 17:28:19 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:18 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 12/19] python3-setuptools-scm: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:41 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:21 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162004 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb b/meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb index 10dad5a37be..182ccecbbfc 100644 --- a/meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb +++ b/meta/recipes-devtools/python/python3-setuptools-scm_6.4.2.bb @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148 SRC_URI[sha256sum] = "6833ac65c6ed9711a4d5d2266f8024cfa07c533a0e55f4c12f6eff280a5a9e30" PYPI_PACKAGE = "setuptools_scm" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta UPSTREAM_CHECK_REGEX = "setuptools_scm-(?P.*)\.tar" From patchwork Mon Feb 21 01:27:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3879 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 1B017C43217 for ; Mon, 21 Feb 2022 01:28:23 +0000 (UTC) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.web10.5696.1645406902565546260 for ; Sun, 20 Feb 2022 17:28:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BefP/V3b; spf=pass (domain: gmail.com, ip: 209.85.216.54, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f54.google.com with SMTP id qe15so13615509pjb.3 for ; Sun, 20 Feb 2022 17:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=RtcFMuPclQ4DUz920xLyzHC54n4w5lFOmmvPeqnMHeE=; b=BefP/V3b+zd7MT2WLg1Z4lGY/7ulrollSgd/VE9NmcPiTwLiZNrcj5fxNQt/otnnmf 03YGUmvUgVpHJyq+YFrK/FqQwZc8lUv/42v4/ACzW4pRhYGL07y0Z6y/eyRw5MSGgS4A acSO7gSD5FIXy3osMFb8qP5C7B+InEm7SK8sPt3UUbOs7AZp3u0JkF8pRp/MvTNJ9jYk 68TwCRHB+pN0bNlt14qmg/9kXs+3fnDSmXk5p4q0H75bQ5um9VR+wkAhYdm+zuLGekWr rTT9a6lVd8ELAyItJxAA0edI+B+ThvhaV5hH8FBSgHFHfrek+2WZOyx9qCUFgyF61ceo CJag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RtcFMuPclQ4DUz920xLyzHC54n4w5lFOmmvPeqnMHeE=; b=iAArUENAxYLUi4otqRTGLbc0RRnjbtb1DRyK3TUmCtXkfZ0TbO3/yFPcmc0CDJXD9Z Sigwo8uex51O1Su/9GYt6v1h/3rW1QMu3ylFEKg6zbcAZ54cXVyZKpNiQGz3PuiI2a/j Dn8i8E6cg52rJM7RpCV67GUW2Zb0RjAQvqPytFiSAYKQqtgyvPxxvLiHqjFlAq7/bi94 H9kGXE0hxUoLOSdo20DySxCgogTpe3b9McBD9FpnBofStfQykgIsX2LMJz8CBad+vw95 l+qtP483lnxqGGG1DIv7ThxamxAnmhxVd+/XEp9ls7iueNULNmTzn0y+Q0Xvukgz/z1l rEKQ== X-Gm-Message-State: AOAM532cbBRO1btruehQay7F+SO9OC5Em51zJcj4vu6jgt6dHDvpp3ds //jZD1pY1vrS8VTztcDQnMApwtCowgWIVQ== X-Google-Smtp-Source: ABdhPJz1p3iY6/3wK7bUc2aotk8Xx5bXzbzrbAP0SxsQnZzaWbLA/2BYLqWAvvUlV800ubBt0rmlJg== X-Received: by 2002:a17:90a:2c0c:b0:1b9:fa47:1caf with SMTP id m12-20020a17090a2c0c00b001b9fa471cafmr19229199pjd.34.1645406901699; Sun, 20 Feb 2022 17:28:21 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:20 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 13/19] python3-zipp: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:42 -0800 Message-Id: <1196c354c581fa0db267a349ee837b304e80aa09.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162005 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-zipp_3.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-zipp_3.7.0.bb b/meta/recipes-devtools/python/python3-zipp_3.7.0.bb index 9ce987c8702..d0f936faf7c 100644 --- a/meta/recipes-devtools/python/python3-zipp_3.7.0.bb +++ b/meta/recipes-devtools/python/python3-zipp_3.7.0.bb @@ -7,7 +7,7 @@ SRC_URI[sha256sum] = "9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebce DEPENDS += "${PYTHON_PN}-setuptools-scm-native" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta DEPENDS += "${PYTHON_PN}-toml-native" From patchwork Mon Feb 21 01:27:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3880 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 1AFA9C433EF for ; Mon, 21 Feb 2022 01:28:25 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.web09.5671.1645406904289007387 for ; Sun, 20 Feb 2022 17:28:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Avsjr2S1; spf=pass (domain: gmail.com, ip: 209.85.214.175, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f175.google.com with SMTP id x11so11610825pll.10 for ; Sun, 20 Feb 2022 17:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2+jhuDVk42cblSxhdfHN9JEWC7uv4FiBqTZZvGgFJdQ=; b=Avsjr2S1aJK6EWjaczjO4JrgRrLvlLrZGFY6DrAheHIIpn5WJ7w1QmJ+ygLn5lC05R d2ypspuAqebuxDYBOcXxe70CRMPSV5PkXDWspOlw/ybm5r9RWvUQFkRppHmZtAXl/4ZS 2pIH1J88VrkXi9lkjd2nOM6b8Vui9/13KPMCf+0QMGvt1P4oqaVESS3yW0XymScNWQu4 YMqUvQ3py4/XBM1ds3NfKs9EO3LCVQXKonyqnYYKGg4nJNbmuAMX1D8IXzkpKRiwLgas fzqpKNsXW7SC4xAqzW1QvLE3Qc7CR/PNWCH8XyqmWoHVi3UXdpr8Ah4KCPm+1vb89Y9w rQCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2+jhuDVk42cblSxhdfHN9JEWC7uv4FiBqTZZvGgFJdQ=; b=4M4/t/XZ0koMsR20YlYRDUv9ZccN6mPV4PhiPS/VDbWihy/mOIfBXnX+C5Qv783vdr uCoIBogG4Gi0CjfMnu7PJ9OiDdBMRDunCHPRzbKiRgCELVosYHKa5K30tszViWy6W1R+ jLuhFvotWNmCvyzGFpG9tIVRtlxUOq3lUKsle2yevHuGB5tcwTQjQSUZxEXVrRSsaoT8 qFOsFaXfNm73rvfHsO2bh1wtG5kNPEsLPDl9v4RuDB6MGbRKfQDRlyMu+MiB3nYLlYsf t5NQXFI8fOSH+bWIdwJVFG8vh2dXfhUHF7uIjY2LG0/jDC/wtkbXlqFO0V+hWy7QnHM4 J7wA== X-Gm-Message-State: AOAM531wc56l0/4F/W+Qq+aXYKpIKNpVmMGKO1WnJtlXTqXpKTt1NTsH 55ZwE+YPLHSX3v2TaCNTEt9OmD3/az02zw== X-Google-Smtp-Source: ABdhPJx7nEJIwp69vlJEXcr8TWGSSv1tiQqqvYsLciz2HS9lWFFstBRRZHdzVw/9rt24syNCgIowDg== X-Received: by 2002:a17:903:11cc:b0:14d:a0d5:76f with SMTP id q12-20020a17090311cc00b0014da0d5076fmr17108782plh.109.1645406903368; Sun, 20 Feb 2022 17:28:23 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:22 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 14/19] python3-iniconfig: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:43 -0800 Message-Id: <8dfb9fd2cb1a938dc8e8fc27389320da040de8aa.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162006 Upstream provides a pyproject.toml which decalres the setuptools.build_meta backend for PEP-517 packaging. DEPENDS on python3-setuptools-scm-native (as declared in the pyproject.toml build-system.requires). [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb b/meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb index 6b3359712f5..5338980e699 100644 --- a/meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb +++ b/meta/recipes-devtools/python/python3-iniconfig_1.1.1.bb @@ -7,4 +7,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9" SRC_URI[md5sum] = "0b7f3be87481211c183eae095bcea6f1" SRC_URI[sha256sum] = "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32" -inherit pypi setuptools3 +DEPENDS += "python3-setuptools-scm-native" + +inherit pypi setuptools_build_meta From patchwork Mon Feb 21 01:27:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3881 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 1DA48C4332F for ; Mon, 21 Feb 2022 01:28:27 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web10.5698.1645406906407033444 for ; Sun, 20 Feb 2022 17:28:26 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bTBgaGmX; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id z15so1581325pfe.7 for ; Sun, 20 Feb 2022 17:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=X4xVXeduiKApS5jdl9z3vg0p3yiRh7xu17Yg0fxqzdw=; b=bTBgaGmXC53ncTHkMTbGihkBt4zgCeyZzxDAbRNA3kDNiJDRYCgivx37TVTBHPAL15 MrQfNd8ZTkH2+sltjU6SQU55QTDSuKy7p58FIFP4GkZDeUR9XJUOe7OjRWB7Yp9yezha Z06RTL2bXrl9WnxfpzyWmQTlmZjv9F9waBidX98pVCf4wbQKhZOCb2AbR6kUDDwnq/X5 6nlpZbW7bRmP+kY6mUPQzAHhURWoT0pX994nU4kMfQzunO2ZwrXlFZtFBVRswv6ZEaaV T7UUuMxq7snpEoBoWP5CWaczvGplNkY5iSWuA0G/SffuwEgPOIx++0mkeAAerjTndntV Wy0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=X4xVXeduiKApS5jdl9z3vg0p3yiRh7xu17Yg0fxqzdw=; b=6CjT5qvrvQ5vR8MOAVmbXHpCSJdhed8WqRxSdh84xX274w/cll6pYmjGcYX4iGFq78 mvwzNSctyaVjdoJfniXocY3kmH9BnPnnvFKemxbX3hNDh1anlO0NCFmzHP655rD7FLoy guBMuLk6imrqBIJy2LFlTOHJU9n7v0tYooq4mqK5EL8dCF2pebIk81XUmSC43ycMCX7U 5jjF2JSpXmNEA3mUWTL/JzGs8GhS6LbeA5s5sgiT1aket0JfAoyMLyTsbLiiOeasZOKS wCW6Ow+OJEvHeyF7SKSz5v1kYQvc+WKeobNAopZ1WO36Ol40B31P2JavvoiCj7TsYzWD f7mQ== X-Gm-Message-State: AOAM5325EiCyT3lIfFjeT1uMR/Ii9JPJcpx4OoQY88/NmNGZsQLy5FlD VE1KJdOA3F2CTTPv3kIIO+V7W/zdVbC3mQ== X-Google-Smtp-Source: ABdhPJyroVXOHnkuIY9ZTuL35+pUoRPCPNoXq7QCCHF3UBsSXeWHIyoWj6o8Zw+GhY2xnfrDjDs+LA== X-Received: by 2002:a63:4560:0:b0:370:1f21:36b8 with SMTP id u32-20020a634560000000b003701f2136b8mr14198170pgk.181.1645406905427; Sun, 20 Feb 2022 17:28:25 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:24 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 15/19] python3-py: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:44 -0800 Message-Id: <22391dfe28d6f19fe863cbe51039406ed0225d44.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162007 Upstreama provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-py_1.11.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-py_1.11.0.bb b/meta/recipes-devtools/python/python3-py_1.11.0.bb index f8be3935e5e..02027248f46 100644 --- a/meta/recipes-devtools/python/python3-py_1.11.0.bb +++ b/meta/recipes-devtools/python/python3-py_1.11.0.bb @@ -7,7 +7,7 @@ SRC_URI[sha256sum] = "51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4 DEPENDS += "${PYTHON_PN}-setuptools-scm-native" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta BBCLASSEXTEND = "native nativesdk" From patchwork Mon Feb 21 01:27:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3882 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 1C10DC433F5 for ; Mon, 21 Feb 2022 01:28:29 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mx.groups.io with SMTP id smtpd.web11.5736.1645406908551216041 for ; Sun, 20 Feb 2022 17:28:28 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aEJaZzIg; spf=pass (domain: gmail.com, ip: 209.85.216.43, mailfrom: ticotimo@gmail.com) Received: by mail-pj1-f43.google.com with SMTP id ev16-20020a17090aead000b001bc3835fea8so1495602pjb.0 for ; Sun, 20 Feb 2022 17:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=1dEeEM7O/kcVvEVIjSYLF/yWoBvDrNA8gSBfwiQVOSQ=; b=aEJaZzIgANoT6x6NWdzHHXy2T4TWteF3oWG9ykYgd+aSWcHR/98eOgtAl3MqFLBzle pSLVYyXaoYswYON4GoQZR9dhPxBryzMEF/g/sP9lv2AkcHvLaHtzoVqylcpjf/02Oz0l 0qAJ4Ag+eEmP8h6owtnTkQijXYpb45LpGaaLA5tD1yFlBKv27vTrtsGfIjMA8zpryMJt ebgezFb5okL9klrnBmwUF5+3+xsvMUTPsIrTBJo1yr5pj1Es6eiTlHObjRa5v2bPokjC +7smtFseQlIPwZ80RfK7koPZYsc4QvmIL/cmwrDYISJdw1ChRQKGS3djtIGd8t3d6h8a OW9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1dEeEM7O/kcVvEVIjSYLF/yWoBvDrNA8gSBfwiQVOSQ=; b=Zkb2a3lilUHHfczs3vPDt2TGQfKXxHcwf1ijkwXkFSsgrjXAk/rJcFxMod41qOl1z6 uARkYUit6Y+JzOZ8XAqnb5Djvkz6K+ddQzL4c1sk6XyABvPko8KNJWhJhdh9eCxl5cDU u1HyEQF+ENr+Xzdc7MfH+OBAeX1d0HYI5wQytW/OpHSSoi0tTGEpUYiAE9R32vkJfVA6 Q5f4wFxp8Vzfu2PsREI0rbX/W6DRXApA5A6pa6XP6s54+bpzEC0rGYJjs1eNeJTTZChk GCEc1UVxA7EHQPThqZRFtGABFVM6dNGOpQfhszaYBWeOOkOahdhiEPMeeBIE9tOMe7Y4 /XKA== X-Gm-Message-State: AOAM532nCGMjbg0YVTk1JZVE/yEETh0Ev8nH80VKlap7qWqTncHsTkoD l9nEBqcWGeHee0WAUZH6vY85zl+1fGPNkA== X-Google-Smtp-Source: ABdhPJzSlZg/i3qB3Lx+te0d3P1bdLcZrMUNunYF5f6aOl42EO0uyRkk561eExtPThn8BsJeQuA5dw== X-Received: by 2002:a17:902:a98b:b0:14f:ae28:c660 with SMTP id bh11-20020a170902a98b00b0014fae28c660mr4309588plb.94.1645406907621; Sun, 20 Feb 2022 17:28:27 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:27 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 16/19] python3-pluggy: inherit setuptools_build_meta Date: Sun, 20 Feb 2022 17:27:45 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162008 Upstream provides a pyproject.toml which while it does not declare the setuptools.build_meta backend is compatible with it. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-pluggy_1.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-pluggy_1.0.0.bb b/meta/recipes-devtools/python/python3-pluggy_1.0.0.bb index 14a7ccb0b0d..73bbcb02697 100644 --- a/meta/recipes-devtools/python/python3-pluggy_1.0.0.bb +++ b/meta/recipes-devtools/python/python3-pluggy_1.0.0.bb @@ -10,7 +10,7 @@ RDEPENDS:${PN} += "${PYTHON_PN}-importlib-metadata \ ${PYTHON_PN}-more-itertools \ " -inherit pypi ptest setuptools3 +inherit pypi ptest setuptools_build_meta SRC_URI += " \ file://run-ptest \ From patchwork Mon Feb 21 01:27:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3883 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 23EC3C433F5 for ; Mon, 21 Feb 2022 01:28:31 +0000 (UTC) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.web10.5699.1645406910592603036 for ; Sun, 20 Feb 2022 17:28:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aTyoeAEU; spf=pass (domain: gmail.com, ip: 209.85.215.171, mailfrom: ticotimo@gmail.com) Received: by mail-pg1-f171.google.com with SMTP id 139so12956233pge.1 for ; Sun, 20 Feb 2022 17:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Io8PgCmDlTZyyvDqmbFEsfKf0u12OM5JWyMWxv8+SUE=; b=aTyoeAEUZB7Zs9W05ZaQwzhMNTWL6tezaqWi7byIRnYwVIJWaqq+XbbEjjGSqL+a9y rA37kJ3jY/h+6Ggq2euWmmp1Smei3F7QPng28itWXI3UwAHkbqqlV93QEjRpYUooQ/hr buZm4JX/yAEX35jM2DU45v3oAame+9bRJmAgGthmQGvXJCnMNRW8q/BYkS1dKwdVq1+w a5FNag0dpBoCvrAL1Kwh0eDW/hq0i0se0L8nZLxC0VcB8Uur8qDxEVraBLsCeYQCfOyi MjyAuIea0xPMsaQCqu24Ab38Hetwnlu7/fLGWFabtdZ+/4Eh7X8SATl6fpwKPueUKsAH x1Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Io8PgCmDlTZyyvDqmbFEsfKf0u12OM5JWyMWxv8+SUE=; b=7TyZfGIj91KWpT/aCyOexFwsOEvSBjmac428/acoMj95k8lzb7nr+A2pUOdFfJMA/z TZ32YyAuK/SHnVp89GLCha9Sw0wpZC9Oa83bP+mQSyHVu0meW7TUEruwcnikZGgDFaij 8URvYx/Le/7jlPFDZ+zLL5II9CghVZVHKQb3GuUuwt6kon4GgWDelwsDpwi0tnGDAqcP LTQnxTy0n0spMzE4TPvDIqzs2GuNo0VMc+RzABMyHM4ykXn51hmw35NwBPh4sd6IxDwj qxY5Bqi07/b5jx4HjqlcQjLK5XBS5mtLrOlFDKZIJhdJsnKnU1I1U8EdjZqWo5y9TbjC 8e1g== X-Gm-Message-State: AOAM531oyNx6QQBcCDSiooWTHPyVBrn9QuX7/kRKGsHFplPx8gCAjH8M JVtTC4hmEX6C9BO7i4hSZb9o+byDLYp1Ow== X-Google-Smtp-Source: ABdhPJxezC5J5HfXWShxTFz4s3FtvZP77dY8i3SJBmLg6EMzwQerTLRmiOOMi9aGfjd+ytyKHg1ebQ== X-Received: by 2002:a63:2356:0:b0:372:c64f:ab1a with SMTP id u22-20020a632356000000b00372c64fab1amr14018763pgm.230.1645406909682; Sun, 20 Feb 2022 17:28:29 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:29 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 17/19] python3-setuptools: inherit setuptools_base_meta Date: Sun, 20 Feb 2022 17:27:46 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162009 Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] Signed-off-by: Tim Orling --- .../python/python3-setuptools_59.5.0.bb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb b/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb index 33ca928c3e5..2155101d305 100644 --- a/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb +++ b/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb @@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=7a7126e068206290f3fe9f8d6c713ea6" -inherit pypi setuptools3 +inherit pypi setuptools_build_meta SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" @@ -17,6 +17,19 @@ SRC_URI[sha256sum] = "d144f85102f999444d06f9c0e8c737fd0194f10f2f7e5fdb77573f6e2f DEPENDS += "${PYTHON_PN}" +# Avoid dependency loop; we bootstrap -native +DEPENDS:remove:class-native = "python3-pip-native python3-setuptools-native" +DEPENDS:append:class-native = " unzip-native" + +PYPA_WHEEL ?= "${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" + +do_install:class-native() { + # Bootstrap to prevent dependency loop in python3-pip-native + install -d ${D}${PYTHON_SITEPACKAGES_DIR} + unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \ + bbfatal_log "Failed to unzip wheel: ${PYPA_WHEEL}. Check the logs." +} + RDEPENDS:${PN} = "\ ${PYTHON_PN}-2to3 \ ${PYTHON_PN}-compile \ @@ -38,10 +51,6 @@ RDEPENDS:${PN} = "\ ${PYTHON_PN}-xml \ " -do_install:prepend() { - install -d ${D}${PYTHON_SITEPACKAGES_DIR} -} - BBCLASSEXTEND = "native nativesdk" # The pkg-resources module can be used by itself, without the package downloader From patchwork Mon Feb 21 01:27:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3884 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 23596C433EF for ; Mon, 21 Feb 2022 01:28:33 +0000 (UTC) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mx.groups.io with SMTP id smtpd.web08.5742.1645406912483768605 for ; Sun, 20 Feb 2022 17:28:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QcVS/ccY; spf=pass (domain: gmail.com, ip: 209.85.214.171, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f171.google.com with SMTP id u5so11630205ple.3 for ; Sun, 20 Feb 2022 17:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=JFBDtiyUBEaYHDGlHhmGIqP+Prn5NIIWPCr2pMfnyXo=; b=QcVS/ccYmeD0o17Z4A/mbU2ZIeDk8d/eDppjosQw0asun/PtPF7KD81CZrKYKfB2Xq fvbfi/FSoGM/gTts7ar9lsaPIdghsORIYUAW+mPCzdihCnOfMf05vDM5efYuuLa2oJUP NXA8xwn0KSGk4M3fv5O/qDE5P6bgJ5UoihWVRLENjhFJV6WEdgdZtpKTpExgY/GdoYMB Z8V0t/AkhPzSIte2XgPlZZQx0gXS24IB+jwH6GCT0ZIFP++dxZz5mgac+hVVWOLcVcY9 GgeJTlFjRut5j3v+OOUpfH2YpPHvU2pgbRKY4NQzbh2Xl6vGCtukaDpY0zYo0gUGNxK2 k6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JFBDtiyUBEaYHDGlHhmGIqP+Prn5NIIWPCr2pMfnyXo=; b=hCIbHzPon7St9lwwdR3MclK1jQWLPZHl/085aOaqf6dTVw6/LziOwITG6E2ofXy8Um u+2X3cWBeFCAxAK+kuyrZyRIPSLcRxZQKHrfF1MDuGeiH58c73aaYHQW28DXzW71dxSv Icd+9Sp72fszL6RVYZ+X6pWKviLiVpq238Y/n+TMhm2usmpUTEdH1HSOxM3kIc45pH/e TKfPEbaFxU42kiT59i1Zn65mNTZ0QWJfJg4XqLBRwFvk3DtQhN+hNmedBJFw90rYel3x bpfkUzFjJRcbbpfjH9cMqKE06aoeUQk2skegLnYwULJPTdDnAuSvh8WTkjVmfAj3x5Yk 7TYA== X-Gm-Message-State: AOAM530UXQ8n6mfNzqrGr4A951lCbu8fq8fnAXhOrn4mao6qLvrH82rN vQ8o8qM5tHctFf/er6Hgbl7ssKCkkTyz0Q== X-Google-Smtp-Source: ABdhPJyienWy88u3Rar/s+3EEnHyAhsLurWIhXD5lZLbYFVvxBSEm58Yzl0v9X8/c+VoTzd5UcVCUA== X-Received: by 2002:a17:90a:ce12:b0:1b4:dc9b:635e with SMTP id f18-20020a17090ace1200b001b4dc9b635emr19163214pju.129.1645406911520; Sun, 20 Feb 2022 17:28:31 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:31 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 18/19] setuptools3.bbclass: refactor for wheels Date: Sun, 20 Feb 2022 17:27:47 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162010 Depend on python3-wheel-native so that we can build with 'setup.py bdist_wheel'. Use pip_install_wheel class to install the built wheels with pip, as intended by upstream Python. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/classes/setuptools3.bbclass | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/meta/classes/setuptools3.bbclass b/meta/classes/setuptools3.bbclass index fd8499d26c7..12561340b07 100644 --- a/meta/classes/setuptools3.bbclass +++ b/meta/classes/setuptools3.bbclass @@ -1,6 +1,7 @@ -inherit setuptools3-base +inherit setuptools3-base pip_install_wheel -B = "${WORKDIR}/build" +# bdist_wheel builds in ./dist +#B = "${WORKDIR}/build" SETUPTOOLS_BUILD_ARGS ?= "" SETUPTOOLS_INSTALL_ARGS ?= "--root=${D} \ @@ -23,20 +24,15 @@ setuptools3_do_compile() { STAGING_INCDIR=${STAGING_INCDIR} \ STAGING_LIBDIR=${STAGING_LIBDIR} \ ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \ - build --build-base=${B} ${SETUPTOOLS_BUILD_ARGS} || \ - bbfatal_log "'${PYTHON_PN} setup.py build ${SETUPTOOLS_BUILD_ARGS}' execution failed." + bdist_wheel ${SETUPTOOLS_BUILD_ARGS} || \ + bbfatal_log "'${PYTHON_PN} setup.py bdist_wheel ${SETUPTOOLS_BUILD_ARGS}' execution failed." } setuptools3_do_compile[vardepsexclude] = "MACHINE" setuptools3_do_install() { cd ${SETUPTOOLS_SETUP_PATH} - install -d ${D}${PYTHON_SITEPACKAGES_DIR} - STAGING_INCDIR=${STAGING_INCDIR} \ - STAGING_LIBDIR=${STAGING_LIBDIR} \ - PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \ - ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \ - build --build-base=${B} install --skip-build ${SETUPTOOLS_INSTALL_ARGS} || \ - bbfatal_log "'${PYTHON_PN} setup.py install ${SETUPTOOLS_INSTALL_ARGS}' execution failed." + + pip_install_wheel_do_install # support filenames with *spaces* find ${D} -name "*.py" -exec grep -q ${D} {} \; \ @@ -64,5 +60,5 @@ setuptools3_do_install[vardepsexclude] = "MACHINE" EXPORT_FUNCTIONS do_configure do_compile do_install export LDSHARED="${CCLD} -shared" -DEPENDS += "python3-setuptools-native" +DEPENDS += "python3-setuptools-native python3-wheel-native" From patchwork Mon Feb 21 01:27:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3885 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 20237C433EF for ; Mon, 21 Feb 2022 01:28:35 +0000 (UTC) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web12.5668.1645406914504112689 for ; Sun, 20 Feb 2022 17:28:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XjTti4jZ; spf=pass (domain: gmail.com, ip: 209.85.214.174, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id q1so3059252plx.4 for ; Sun, 20 Feb 2022 17:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=KpabGmJjjk3K+/jFXIE88j1atOrJNVNNgrpdrYZkKAg=; b=XjTti4jZJmYMFhV6lgpyAHcb6gO+i6z01xL1lBFuFwasemMqai+P63/x2hjDhSa2yW 2ZOEXQpp7doeqlrm8Jvet5XaCFgnuUbMWt6QUQyNjD9Z6fm5jHR3xs2VQkaVh76YoYJe 2w5QSGsnKtz5hgJp/lsZJlgEUMgjPbZuYM/+fzpr1ZwBTa1HgAeQ36Y7vVqz6GwjnJ1h YygxDk3V5j2/Wt723ac/KUEDNDugoB2oLpWjGm7HP/ZFOI30eSRjt+zV7nU2ullEtIii mDq1sZ8XTt8kdJsEj1wVcswIdLdPUhY8pD817w3NX4TOOQuwi5qI+Te2zWb+IqYMTS7r lTTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KpabGmJjjk3K+/jFXIE88j1atOrJNVNNgrpdrYZkKAg=; b=qPz7g8B0t9QjnuL4YuNkoUOjEi3JiWgXYWdGf6wKJ2Tblz2QP5vep3hzB5AlKkjTRS qFT3xlP2b57I2+AyXR+0mWZof8edBkVWc6ufNKIvwzjQ/OjfYtl4xRM4Ut9ovvP9Bpp3 pa+WVAWzurEu17Cn7gx6xlL0JAjcQcQ9kZrZnS4SKpk+VFiFoGvOioTRhNomawnSjmsQ NH5qfKlKdaoZVWPMYOWzM85FbE9iLXaUZSq6UFPEqTeXz+48lZMhJTUMClQdK6j132nr 6nPt4DNaIXFdTSTDjD4ep9qMdMnd87vee+AB46MwwVe8Lva6iITfUzYOv1hV/MoUUrWN th2g== X-Gm-Message-State: AOAM531rd89qkYZi+tkkUCCan8pAhzluAh+AMdI9rCIdv9BRBOcttqNl zaz0QR9XwHWvBpTqqXCfv4vytOi9nxWaog== X-Google-Smtp-Source: ABdhPJw1gqu0/nLmNbR3sWvDaL4O/05dfzMiG3QykbysliiUqUyo01LCxp2CgHrbVEtd0MURg+cHsw== X-Received: by 2002:a17:90b:388d:b0:1b9:950c:f08b with SMTP id mu13-20020a17090b388d00b001b9950cf08bmr23508155pjb.49.1645406913539; Sun, 20 Feb 2022 17:28:33 -0800 (PST) Received: from nereus.hsd1.or.comcast.net ([2601:1c0:6000:1b20:f2b0:3951:ce8:8dfd]) by smtp.gmail.com with ESMTPSA id e20sm10252937pfn.4.2022.02.20.17.28.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 17:28:33 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: openembedded-core@lists.openembedded.org Subject: [PATCH 19/19] python3-more-itertools: set PIP_INSTALL_PACKAGE Date: Sun, 20 Feb 2022 17:27:48 -0800 Message-Id: <9b260ea23a9ea79fa3750694fb41c1fa5fcd6993.1645405471.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: 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 ; Mon, 21 Feb 2022 01:28:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/162011 Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the wheel. [YOCTO #14638] Signed-off-by: Tim Orling --- meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb b/meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb index c1e34b205da..5788af3f71e 100644 --- a/meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb +++ b/meta/recipes-devtools/python/python3-more-itertools_8.12.0.bb @@ -7,6 +7,8 @@ SRC_URI[sha256sum] = "7dc6ad46f05f545f900dd59e8dfb4e84a4827b97b3cfecb175ea0c7d24 inherit pypi setuptools3 ptest +PIP_INSTALL_PACKAGE = "more_itertools" + SRC_URI += " \ file://run-ptest \ "