From patchwork Tue Jun 2 08:09:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 89138 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 A1017CD6E65 for ; Tue, 2 Jun 2026 08:09:59 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.20083.1780387792996125658 for ; Tue, 02 Jun 2026 01:09:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Y+RqyVBg; spf=pass (domain: gmail.com, ip: 209.85.221.48, mailfrom: martin.jansa@gmail.com) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-46019edc13dso196377f8f.1 for ; Tue, 02 Jun 2026 01:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780387791; x=1780992591; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hDJEdbO0CeXzN0ATdDOxHf2yLAY02qMqa4WqKOU96aM=; b=Y+RqyVBg+EIQvdYQJg8Y5/CPg2zmNi8vSiDZ/xIKqxTdUN8yd3ylkKqbibuw4HMzJo IRpg8ERJojgG6jBitc3rjN/59iyP1+yA7BqJgQHShVVGy8l5+PEZ1IzCzy1sY5sTd5Gq WZrK4JHAWQxaoDXRj9fsKd9lwPIsexx+roCx3xZKhTLLak6j+Y5Wacpo5oYfZJbEBGhT Jf4k/qmG7b/dPg3A0kvKx/7aK62xJegNY44WtzfwPYP/F16Fy3XT/ahtKy0FXUt/9fO5 8WpaOD1xYDVoBYLWr24aHDdYFLd8DeH0yLQgLFSrbzTIYeHX2Yf5+OZSSkgYzpQAyGRP 43Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780387791; x=1780992591; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hDJEdbO0CeXzN0ATdDOxHf2yLAY02qMqa4WqKOU96aM=; b=An9+/enxKakVsna0DWH7olgJrjx5DT2XPucwIvw0JUVkkT6J5lZi3FuALux69W/uIu S+TepSeYKytDUKR59AN61SKZbuzjD/U8W7gt085O8KNdao8H+vvwYg6mn1W9lUeyUQeG uzva7OWYTkLSFay8i7woXlX03uZoHBxccV7O2t+XbPxGuhsDSBc+8bUHvHQfK+mnBmgN d62xtcURn+NdFMCqPbrdqcoEVC1kPki9eTo2vaLRICcu3lRKsayGBoptrBS5hcVNjOQo lqrx6p2TCccXWBNSiXpHFaRZIPv0Zp+WvbCpt+1SBk0yVWruSKVvOVsmcJJErKoH/+00 zlkg== X-Gm-Message-State: AOJu0Yw+Ddu1kgYSFnPgw0ufP8bb0qmt+7CjFz90VnwEkGXIY3hj4c3G jl4BDiOex/VLvsqn6YqfY8ExLIQe5d08Do5fxnj7YL16AF3/YL72WY5uU1SvMg== X-Gm-Gg: Acq92OGquQJWDWn3wvK5nQnqNuO1XJWCdwm5bB+PCgOFHEpbMrN7mVxSMnlAuMyCG+a g5MXfugbvy3EwGDxyFAoCL/uMr7cpcF+v6a6Yb3xu4Rj+4U52ufpE5bThLR4tEftOgm6nLgtpqp V19T/7Vr9eve6ALAw0Wapz5YimdeEhVSV8gJT+MKMRUgBvLKYS4t7UlqjlWlG95GnK/Y/cLgb0n Ydqzie1CwsfWSEW/z6+1E0OXOIIn0GDUa6DjU2m/XzTls8LgZM3q00eFQFmG33bk143xIra/F7k zWGaMmAr7kiFEDi9FML0bWqguh0XGa34ByVtcb+h5g5tASYPea2hMeV8EJahj0PnpLcBGa15wdZ NjuEhIH07W4Nd8Q2RZ9dhroGQOAR+PVVkPCDuYuRAOiEqwUTVv3u1Dg3Sg2cAN7T1gPXi4b2UG4 gnATt7dmNYNippTsh6c5qQOFNl2sB9hsWaIh9yUpmy0H+OIRendPpL1irFTxY/tZf0Uy3RucDev 4M7DPmNO3Gx9OybEfwz X-Received: by 2002:adf:fd91:0:b0:43d:77e1:6a69 with SMTP id ffacd0b85a97d-45ef6ba5aabmr18758750f8f.38.1780387790917; Tue, 02 Jun 2026 01:09:50 -0700 (PDT) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef354bb7asm30658488f8f.20.2026.06.02.01.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 01:09:50 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Ross Burton , Mathieu Dubois-Briand , Richard Purdie Subject: [scarthgap][PATCH 1/3] setuptools3_legacy: ensure ${B} is clean Date: Tue, 2 Jun 2026 10:09:38 +0200 Message-ID: <20260602080940.1053865-1-martin.jansa@gmail.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 02 Jun 2026 08:09:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/238014 From: Ross Burton We do builds in a separate directory in this class, so add it to cleandirs to ensure that it is empty. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/classes-recipe/setuptools3_legacy.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-recipe/setuptools3_legacy.bbclass b/meta/classes-recipe/setuptools3_legacy.bbclass index 264b1f5cfb..45f567391d 100644 --- a/meta/classes-recipe/setuptools3_legacy.bbclass +++ b/meta/classes-recipe/setuptools3_legacy.bbclass @@ -17,6 +17,7 @@ inherit setuptools3-base B = "${WORKDIR}/build" +do_configure[cleandirs] = "${B}" SETUPTOOLS_BUILD_ARGS ?= "" SETUPTOOLS_INSTALL_ARGS ?= "--root=${D} \ From patchwork Tue Jun 2 08:09:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 89137 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 7CCB1CD6E61 for ; Tue, 2 Jun 2026 08:09:59 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.20086.1780387794033295339 for ; Tue, 02 Jun 2026 01:09:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=kxWtpLfC; spf=pass (domain: gmail.com, ip: 209.85.128.50, mailfrom: martin.jansa@gmail.com) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-490b1bbcf3aso3630165e9.1 for ; Tue, 02 Jun 2026 01:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780387792; x=1780992592; darn=lists.openembedded.org; 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=WBuxwFCQAHpuWLyyD7dke2CRXhfYjK6nCkS+qnN7Mis=; b=kxWtpLfCKXcDpkTh/vFVZlTKJ0tt+W5kmydN662yZ2n+EPEmj1gLvhLmkNxUFxRgZB 0dnq5by3N00I1NrenBPvKtr6sNBoC62NITYR4RgS4pBmBF4nYOdF9vQu7ULfJaG1Y3XX jSbQzv2X3phddBmkqTf+4bKh8zAcWoif2GvBUmOlPGzVvMrlKlH+uJKR40TBsLzmFsQm 7U2lEeu1hhkoMar2PXZJgrepBLjAS3g97aUmFo8fJGHOmLWNkmZ4bZ5jlCsLWnvRGIOq XwCL5kbmfWg1+Vn/8UAlKXfC4t6emv1GsoQ3vEU/G+F0r0xIiBV4Q7yI+8vkDQ2H/Iqi k9nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780387792; x=1780992592; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WBuxwFCQAHpuWLyyD7dke2CRXhfYjK6nCkS+qnN7Mis=; b=sRBc5fbMJm3Zpf8GM/fpIshPIvtKbKGQDIZwePVLzT0qyB1mMl4bsmEixcO32fnlTl 1jwjBeqk0LtuStBk/G9gm1bgPMH/2++IHkZXPFPHgku2TyagoprW7PnTZUSqgmQZ39S/ PsQlF3UXj6QhQAOI+Kt5wT/B3M4EmIHatal1x0m5qa2a3oJjvHCCG42y4/gWo5Htrknx 21zJs1jrfNFwDU5rUq7rW1hhhMSPh3naN6Bpu2ENBrcZQXSIBGIN4+YdxH3iWq9BpyE8 EALu5BFjasrh6alFnVLvXWUrb5NxoDemoA9TxmxvMT8HwCW66ZhAzUOmmUAQVRVcnEyH Oa2w== X-Gm-Message-State: AOJu0YyYW4IXxYHyc9x6cdprM6TPqoSH3sazydqodcT7I8I3iUefO07I 3TJNFdfvmwq9QevM7E0krehxnUnNB4M8Ur5YuPh+PFJ7s2T0qyZpCSsc2ckFuA== X-Gm-Gg: Acq92OHCEZEa3jOfT/nHsWwyL6BJkRaNb+XxeMyBLrAgLO7fWQJRX4GHrcMqnbU9+JQ bikZ9FjPRNBAsHePmYIa9qIx0/Vi1rqDUMBVlWoWxRXEpxcFXvjwJYRDn/VdEuKwXDEh5CX6pib 32IFf2R06trk4evW8rOHDUkXn9UGf2wcbhucxWpIWDgLCeFw26f2jdx8sJ+ILODUNtwDES/rGZr RnyBkGpLZ4aVy/6U6tazOVtrb1ANxznoAwAbgJ29GA9OnxweubQ9LFERxDreX7qfG0j02pHSEWw 4wbnvlxvzE1gRXlal3e1AUpyX28IExuijC1viz9G16njONq1g4u8GWBN+smfgPfZ6llUkjZIg2Y 1ye3o70yZboO182YNgF97CUVN2V4NerHEtIZwRsAC9FWMQDbd3GeonnUlmeZhYoh6nyAqiO28d0 coEgGvM23hi+tn3rLQRADVXOK2bd7jMNFxVFfyhZqMcTNP9EW+Rz68mUXy+4f1gFD48vVE2YQXs 3vYlqPNlftynjldarzP X-Received: by 2002:a05:600c:c3dc:10b0:490:44eb:c1e0 with SMTP id 5b1f17b1804b1-490a29438bfmr196223425e9.21.1780387792174; Tue, 02 Jun 2026 01:09:52 -0700 (PDT) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490af60e03esm46545525e9.2.2026.06.02.01.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 01:09:51 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Ross Burton , Mathieu Dubois-Briand , Richard Purdie , Martin Jansa Subject: [scarthgap][PATCH 2/3] setuptools3: clean the build directory in configure Date: Tue, 2 Jun 2026 10:09:39 +0200 Message-ID: <20260602080940.1053865-2-martin.jansa@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260602080940.1053865-1-martin.jansa@gmail.com> References: <20260602080940.1053865-1-martin.jansa@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 02 Jun 2026 08:09:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/238015 From: Ross Burton It's not currently possible to set the build tree to be somewhere we control, but we know it will always be in the build directory alongside the setup.py so we can [cleandirs] that. MJ: helps with build/lib directory being added when a recipe is rebuilt in the same WORKDIR multiple times, e.g.: Just rebuilding python3-tqdm in the same TMPDIR after cherry-picking this: $ buildhistory-diff -p buildhistory build-minus-1 | grep PKGSIZE python3-google-auth/python3-google-auth: PKGSIZE changed from 11752510 to 1315694 (-89%) python3-googleapis-common-protos/python3-googleapis-common-protos: PKGSIZE changed from 7108856 to 794024 (-89%) $ wc -l python3-google-auth/2.29.0*/image/usr/lib/python3.12/site-packages/google_auth-2.29.0.dist-info/RECORD 554 python3-google-auth/2.29.0-old/image/usr/lib/python3.12/site-packages/google_auth-2.29.0.dist-info/RECORD 66 python3-google-auth/2.29.0/image/usr/lib/python3.12/site-packages/google_auth-2.29.0.dist-info/RECORD $ wc -l python3-googleapis-common-protos/1.63.0*/image/usr/lib/python3.12/site-packages/googleapis_common_protos-1.63.0.dist-info/RECORD 1166 python3-googleapis-common-protos/1.63.0-old/image/usr/lib/python3.12/site-packages/googleapis_common_protos-1.63.0.dist-info/RECORD 134 python3-googleapis-common-protos/1.63.0/image/usr/lib/python3.12/site-packages/googleapis_common_protos-1.63.0.dist-info/RECORD Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie Signed-off-by: Martin Jansa --- meta/classes-recipe/setuptools3.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes-recipe/setuptools3.bbclass b/meta/classes-recipe/setuptools3.bbclass index d71a089539..c4fd30020a 100644 --- a/meta/classes-recipe/setuptools3.bbclass +++ b/meta/classes-recipe/setuptools3.bbclass @@ -15,6 +15,9 @@ SETUPTOOLS_SETUP_PATH ?= "${S}" setuptools3_do_configure() { : } +# This isn't nice, but is the best solutions to ensure clean builds for now. +# https://github.com/pypa/setuptools/issues/4732 +do_configure[cleandirs] = "${SETUPTOOLS_SETUP_PATH}/build" setuptools3_do_compile() { cd ${SETUPTOOLS_SETUP_PATH} From patchwork Tue Jun 2 08:09:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 89139 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 8530CC5DF71 for ; Tue, 2 Jun 2026 08:09:59 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.19839.1780387795196674999 for ; Tue, 02 Jun 2026 01:09:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Z2oBpavw; spf=pass (domain: gmail.com, ip: 209.85.221.42, mailfrom: martin.jansa@gmail.com) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-45ef82204c6so1669732f8f.3 for ; Tue, 02 Jun 2026 01:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780387793; x=1780992593; darn=lists.openembedded.org; 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=yvs2azMN7yisZecQfkhbniR0bHPnxY6ni2sWxV4hH9s=; b=Z2oBpavwYHyZrSW1lmnNER7VRxV8Uw34eJ7heQV0UDpvmw0KQh0xzSU6azVpljv0/c phYnj44QTpnEj5mOE7ne91cBnvIzdjCHr5AJMT7RT2JG8mQisSp/CabyFr7/PwyV4kP/ TXTPOpLCJV/yVkP+b3GDLRjHjdf0PmkXmU6Y70Ry7cnD8Na1HHKs4oTNfRo2E7nG6+ft qXuRCs4/UDCoQ0h7bLMWe4LdZczg7eArKuKFhoc/ToGjhlnY8Jx8roYMsKhiNV3sWUNO /a/96YFL3xjnOwoaIClLkarHp1ngxX0eWlYA/kOyGNM8Se1SWIJYqN43TCZydWkqgI5c T1XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780387793; x=1780992593; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=yvs2azMN7yisZecQfkhbniR0bHPnxY6ni2sWxV4hH9s=; b=LSRYr+TC17Kza72yg2SABlmTt3iXyuJlToUHkhmR2gDUUFono8PEMkCIuRd3kGhLOi SdXIx8GnRnpFwZMl5qjA5vSMQK9po2oFoio9w3p/Zi4BZnODCYltXsSjPMcP/FIfddzE oua2wHQd9NHG2I35hhxFKfTH0NRsLWWsTNxEu6uBAhcb26HMiOBMejbfUA0vwv7yBi4b CMSZFjX1W3mjmx272pxWAAx/u2V+il+9FwC8SQNV8GQze1Ofpdci3oXG3ltfPVrYs8GC 8bk1mGoEbQt1bhv2ZtOuMfe9OOF0TVTXRmfqjAUHpdrbxcEQNwq66CX4DBuRwGm5SQ59 CZ/Q== X-Gm-Message-State: AOJu0YwJ/6b9AJ/tIZFHEUNLMfaiHDP/GwmcFzyLUIz/1r7IS4SxUUir piWLAlcvlK4qAt9J5zZhJiNZzP/4xHdiO0QAPY+HKcn2vqciE51dGfRH9jy14Q== X-Gm-Gg: Acq92OGuR2EjVpg/C8OEnPtbfHv2jH70z1/3PNp2qet0w36u5/NjWzbf82ZRn5rTE6I t8XVYM8GaFC0/7erpwbf/JwLaf9maCJOSZ+ExBUz23UVe+Wh5po820ZhRDA00oupPXQQfEDWGbP fcA3UZBkPX4vmpa8dRnlESq/+YKrJrtp0Ctx145dIggxqQWB9Ek/kaz0jvdInYfXHYLeb20NXz4 RmY7uhXaHtz7fH/VEdNznrL2ATV8y36IQIkYRZIFY7cV0pqZ7B36o2i42MDgTL5pw2nK4wpsY3w P8Z4sJbA5/bZQOAnfkJePD7RMabEE3JFJptpOI6X1faBv1iPc1H46idT9TLNaP1OAcZIXzBFwNt ZvVH2d6fhGKnzWSojNc6o2XnJIZYPbRWRfek98wmcVjp9bQakqnVZisgZs09otKvDwExImVxaMK toFSb4z2mFq2SLDhDxpRPnmp6PpWNh6IEWF9mEzbu09uDz4G3xgdRgfBTNs5fZUxX8ilPMSGFEd bZLaYM3LdDW6N19mkEd X-Received: by 2002:adf:f690:0:b0:45e:ed10:8dff with SMTP id ffacd0b85a97d-45ef6b7fe7dmr19942540f8f.24.1780387793508; Tue, 02 Jun 2026 01:09:53 -0700 (PDT) Received: from localhost ([109.238.218.228]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef34a0403sm32659008f8f.6.2026.06.02.01.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 01:09:52 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Ross Burton , Mathieu Dubois-Briand , Richard Purdie , Martin Jansa Subject: [scarthgap][PATCH 3/3] python_setuptools_build_meta: clean the build directory in configure Date: Tue, 2 Jun 2026 10:09:40 +0200 Message-ID: <20260602080940.1053865-3-martin.jansa@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260602080940.1053865-1-martin.jansa@gmail.com> References: <20260602080940.1053865-1-martin.jansa@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 02 Jun 2026 08:09:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/238016 From: Ross Burton It's not currently possible to set the build tree to be somewhere we control, but we know it will always be in the build directory alongside the pyproject.toml so we can [cleandirs] that. MJ: this was later reverted in a532cb50151d773c1c351ffccf4d47a37f26f8aa: This is not needed: setuptools.build_meta does the build under a new temporary directory. but the builds in scarthgap aren't using new temporary directory yet, so this is still useful there: Just rebuilding python3-tqdm in the same TMPDIR after cherry-picking this: $ buildhistory-diff -p buildhistory build-minus-1 | grep PKGSIZE python3-tqdm/python3-tqdm: PKGSIZE changed from 3309408 to 426880 (-87%) $ wc -l python3-tqdm/4.66.3*/image/usr/lib/python3.12/site-packages/tqdm-4.66.3.dist-info/RECORD 297 python3-tqdm/4.66.3-old/image/usr/lib/python3.12/site-packages/tqdm-4.66.3.dist-info/RECORD 41 python3-tqdm/4.66.3/image/usr/lib/python3.12/site-packages/tqdm-4.66.3.dist-info/RECORD Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie Signed-off-by: Martin Jansa --- meta/classes-recipe/python_setuptools_build_meta.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes-recipe/python_setuptools_build_meta.bbclass b/meta/classes-recipe/python_setuptools_build_meta.bbclass index 4c84d1e8d0..046b4ffb74 100644 --- a/meta/classes-recipe/python_setuptools_build_meta.bbclass +++ b/meta/classes-recipe/python_setuptools_build_meta.bbclass @@ -7,3 +7,7 @@ inherit setuptools3-base python_pep517 DEPENDS += "python3-setuptools-native python3-wheel-native" + +# This isn't nice, but is the best solutions to ensure clean builds for now. +# https://github.com/pypa/setuptools/issues/4732 +do_configure[cleandirs] = "${PEP517_SOURCE_PATH}/build"