mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Heidelberg via ptxdist <ptxdist@pengutronix.de>
To: <ptxdist@pengutronix.de>
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: [ptxdist] [PATCH] host-python3-flit-core: select HOST_PYTHON3_ZLIB
Date: Wed, 7 May 2025 13:38:09 +0200	[thread overview]
Message-ID: <20250507113809.2818183-1-m.heidelberg@cab.de> (raw)

When host-python3 was built before host-zlib, there is no zlib support.

Fixes the following error when building the wheel from
build-host/flit_core-3.8.0:

  RuntimeError: Compression requires the (missing) zlib module

Caused by this function invocation:

  zipfile.ZipFile(target_fp, 'w', compression=zipfile.ZIP_DEFLATED)

Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
 rules/host-python3-flit-core.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/host-python3-flit-core.in b/rules/host-python3-flit-core.in
index 21af4b5da..bf1ccb34f 100644
--- a/rules/host-python3-flit-core.in
+++ b/rules/host-python3-flit-core.in
@@ -4,3 +4,4 @@ config HOST_PYTHON3_FLIT_CORE
 	tristate
 	default y if ALLYES
 	select HOST_PYTHON3
+	select HOST_PYTHON3_ZLIB
-- 
2.43.0




                 reply	other threads:[~2025-05-07 11:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250507113809.2818183-1-m.heidelberg@cab.de \
    --to=ptxdist@pengutronix.de \
    --cc=m.heidelberg@cab.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox