From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B5B4158042 for ; Fri, 18 Oct 2024 15:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA589E07FA; Fri, 18 Oct 2024 15:32:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8DE70E07FA for ; Fri, 18 Oct 2024 15:32:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3FB93406BF for ; Fri, 18 Oct 2024 15:32:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 255C51E06 for ; Fri, 18 Oct 2024 15:32:46 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1729265562.31663c18856316b40e365b9ebe77b10d5b2da7dc.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/markupsafe/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/markupsafe/markupsafe-3.0.1.ebuild X-VCS-Directories: dev-python/markupsafe/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 31663c18856316b40e365b9ebe77b10d5b2da7dc X-VCS-Branch: master Date: Fri, 18 Oct 2024 15:32:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9e299f79-f280-41f8-9067-43921cdb11bc X-Archives-Hash: 8fbe468b4ffa6d45b1e984486082a4d3 commit: 31663c18856316b40e365b9ebe77b10d5b2da7dc Author: Michał Górny gentoo org> AuthorDate: Fri Oct 18 15:32:24 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Oct 18 15:32:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31663c18 dev-python/markupsafe: Make extensions optional Signed-off-by: Michał Górny gentoo.org> dev-python/markupsafe/markupsafe-3.0.1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-python/markupsafe/markupsafe-3.0.1.ebuild b/dev-python/markupsafe/markupsafe-3.0.1.ebuild index 855ac9b7f4df..69d7df7dc799 100644 --- a/dev-python/markupsafe/markupsafe-3.0.1.ebuild +++ b/dev-python/markupsafe/markupsafe-3.0.1.ebuild @@ -20,9 +20,18 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" +IUSE="+native-extensions" distutils_enable_tests pytest +src_prepare() { + distutils-r1_src_prepare + + if ! use native-extensions; then + sed -i -e '/run_setup/s:True:False:' setup.py || die + fi +} + python_compile() { local -x CIBUILDWHEEL=1 distutils-r1_python_compile