From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 20 Mar 2024 17:04:31 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rmyQZ-00FIbg-02 for lore@lore.pengutronix.de; Wed, 20 Mar 2024 17:04:31 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rmyQY-00047D-E6; Wed, 20 Mar 2024 17:04:30 +0100 Received: from smtp15.bhosted.nl ([2a02:9e0:8000::26]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rmyQA-00046W-20 for ptxdist@pengutronix.de; Wed, 20 Mar 2024 17:04:07 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:message-id:date:subject:cc:to:from: from; bh=3GHvi7YPXLgGMxlxePmebD5MfIiibRXDeisgfpX9LdQ=; b=qgjzJUZEP0Jisp7RiHV+3SsD2bypibERE+bwQlG5CIuLKT6OXTGt4V5Ec8UCuIbsOwWdTexZd46u/ Bb6vUMpujjR9No+vjazXQcyFHOwPOhvLukx8wsHVFqGnyBLD2JCJG1SrV64Vm1tT63XIk3UI4JL1PK ffv1h+k47hja45RaTdEA9Y556++eGWqTTARB01wPrZha3puXyYyhxA7CX2RakdxmleGCd/Atn18GL6 +Pd+Gh/EDR7OtVs3XYDRD2vD4XIoPnJEu613PbgnBCwnEVWDke/OfvuK1y0tiA3iTHKoDp8tq6c/I3 BppdP3SIE0bdWHMjtfkevX9EHctymYQ== X-MSG-ID: 7994b84a-e6d3-11ee-ad9e-00505681446f From: Michiel Schelfhout To: ptxdist@pengutronix.de Date: Wed, 20 Mar 2024 16:59:41 +0100 Message-Id: <20240320155941.539985-1-michiel.schelfhout@protonic.nl> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] python3: Add option to include ensurepip module X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michiel Schelfhout , m.olbrich@pengutronix.de, mkl@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The configuration option --without-ensurepip disables ensurepip at install time, but the module is still included. Signed-off-by: Michiel Schelfhout --- 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