mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michiel Schelfhout <michiel.schelfhout@protonic.nl>
To: ptxdist@pengutronix.de
Cc: Michiel Schelfhout <michiel.schelfhout@protonic.nl>,
	m.olbrich@pengutronix.de, mkl@pengutronix.de
Subject: [ptxdist] [PATCH] python3: Add option to include ensurepip module
Date: Wed, 20 Mar 2024 16:59:41 +0100	[thread overview]
Message-ID: <20240320155941.539985-1-michiel.schelfhout@protonic.nl> (raw)

The configuration option --without-ensurepip disables ensurepip at install
time, but the module is still included.

Signed-off-by: Michiel Schelfhout <michiel.schelfhout@protonic.nl>
---
 rules/python3.in   | 5 +++++
 rules/python3.make | 1 +
 2 files changed, 6 insertions(+)

diff --git a/rules/python3.in b/rules/python3.in
index 70fc44f17..9ab89f9df 100644
--- a/rules/python3.in
+++ b/rules/python3.in
@@ -62,6 +62,11 @@ config PYTHON3_DISTUTILS
 	bool
 	prompt "Include distutils packages"
 
+config PYTHON3_ENSUREPIP
+	bool
+	prompt "Include ensurepip module"
+	default y
+
 endif
 
 menu "python3 Extra Modules         "
diff --git a/rules/python3.make b/rules/python3.make
index 99a553c00..ae128c12a 100644
--- a/rules/python3.make
+++ b/rules/python3.make
@@ -166,6 +166,7 @@ PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_READLINE)	+= */readline*so
 PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_SQLITE)	+= */sqlite3 */_sqlite3*.so
 PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_SSL)		+= */ssl.pyc */_ssl*.so */hashlib.pyc */_hashlib*.so
 PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_DISTUTILS)	+= */distutils
+PYTHON3_SKIP-$(call ptx/opt-dis, PTXCONF_PYTHON3_ENSUREPIP)	+= */ensurepip
 
 $(STATEDIR)/python3.targetinstall:
 	@$(call targetinfo)
-- 
2.40.1




             reply	other threads:[~2024-03-20 16:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 15:59 Michiel Schelfhout [this message]
2024-03-22  8:28 ` Michael Olbrich

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=20240320155941.539985-1-michiel.schelfhout@protonic.nl \
    --to=michiel.schelfhout@protonic.nl \
    --cc=m.olbrich@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=ptxdist@pengutronix.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