From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09EFCECAAD3 for ; Thu, 1 Sep 2022 11:40:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5AA6083DF2; Thu, 1 Sep 2022 11:40:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5AA6083DF2 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AuZoyzfkNqkw; Thu, 1 Sep 2022 11:40:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 9043781D7D; Thu, 1 Sep 2022 11:40:14 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9043781D7D Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 10D2B1BF2CD for ; Thu, 1 Sep 2022 11:40:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id ED33A81D7D for ; Thu, 1 Sep 2022 11:40:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org ED33A81D7D X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F63tOzRrdajz for ; Thu, 1 Sep 2022 11:40:12 +0000 (UTC) X-Greylist: delayed 00:12:12 by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2A2AC81392 Received: from mx.mvz-labor-lb.de (mx.mvz-labor-lb.de [116.203.110.99]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2A2AC81392 for ; Thu, 1 Sep 2022 11:40:12 +0000 (UTC) Received: from webmail.labor (p57803e15.dip0.t-ipconnect.de [87.128.62.21]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.mvz-labor-lb.de (Postfix) with ESMTPSA id 838AC3E8D0; Thu, 1 Sep 2022 13:40:09 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by webmail.labor (Postfix) with ESMTP id F292E4D80158; Thu, 1 Sep 2022 13:40:08 +0200 (CEST) X-Virus-Scanned: amavisd-new at mvz-labor-lb.de Received: from webmail.labor ([127.0.0.1]) by localhost (webmail.labor [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id klX8bbeZDkwT; Thu, 1 Sep 2022 13:40:08 +0200 (CEST) Received: from LLGMVZLB-0037 (LLGMVZLB-0037.mvz.labor [10.30.4.35]) by webmail.labor (Postfix) with ESMTPS id DB1C14D80152; Thu, 1 Sep 2022 13:40:08 +0200 (CEST) Date: Thu, 1 Sep 2022 13:40:07 +0200 To: buildroot@buildroot.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvz-labor-lb.de; s=mvz1903; t=1662032409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=vjvu5qR3P+iqnr7LCaC+3fuTwgLkz/Ib2KCWUvy8Uaw=; b=X7FtimBxX6n77d7tCbZodDGylUBoo/F5bZF7n3cUs9gb6Z/Ox65URZugO37e1WfTOmEd6X gYckwLfBLE5QYfw3Df+a3vcs9uvTs6iqDzFZFYN/cVph+zeHdqTeRVRyOdocIcppcz7hEJ uhNQg5qVpZgb5KFGkgT9B9hVLlVor4c= X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=mvz-labor-lb.de header.i=@mvz-labor-lb.de header.a=rsa-sha256 header.s=mvz1903 header.b=X7FtimBx Subject: [Buildroot] [PATCH 1/1] size-stats: count compiled python (.pyc) files X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Michael Klein via buildroot Reply-To: Michael Klein Cc: Thomas De Schampheleire Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Any .pyc files generated by the pycompile script during target finalization are currently counted in the "Unknown" package, because packages-file-list.txt only contains the source .py file. If a .py file is added to filesdict, add the corresponding .pyc file as well. Signed-off-by: Michael Klein --- support/scripts/size-stats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/scripts/size-stats b/support/scripts/size-stats index e4389e99b5..79c0dc571e 100755 --- a/support/scripts/size-stats +++ b/support/scripts/size-stats @@ -54,6 +54,9 @@ class Config: # pkg: package to which the file belongs # def add_file(filesdict, relpath, abspath, pkg): + if relpath.endswith(".py"): + # also check for compiled .pyc file + add_file(filesdict, relpath + "c", abspath + "c", pkg) if not os.path.exists(abspath): return if os.path.islink(abspath): -- 2.34.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot