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 08406158042 for ; Mon, 4 Nov 2024 20:02:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5074CE086A; Mon, 4 Nov 2024 20:02:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 36B2AE086A for ; Mon, 4 Nov 2024 20:02:54 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FE26342FDE for ; Mon, 4 Nov 2024 20:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B024E159D for ; Mon, 4 Nov 2024 20:02:51 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1730750569.85d5f8711e34207fdf5aa4a5796972a937b81b28.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dulwich/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/dulwich/dulwich-0.22.4.ebuild X-VCS-Directories: dev-python/dulwich/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 85d5f8711e34207fdf5aa4a5796972a937b81b28 X-VCS-Branch: master Date: Mon, 4 Nov 2024 20:02:51 +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: 61766c6d-5f0d-4964-97f0-adff46b9a7fe X-Archives-Hash: e6285c8860c24443bd648da0d1088f38 commit: 85d5f8711e34207fdf5aa4a5796972a937b81b28 Author: Fabian Groffen gentoo org> AuthorDate: Mon Nov 4 20:01:33 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon Nov 4 20:02:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d5f871 dev-python/dulwich-0.22.4: avoid hard rust dep hack setup.py not to require setuptools_rust so a rust-free system can install this Pure Python package with USE=-native-extensions Signed-off-by: Fabian Groffen gentoo.org> dev-python/dulwich/dulwich-0.22.4.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dev-python/dulwich/dulwich-0.22.4.ebuild b/dev-python/dulwich/dulwich-0.22.4.ebuild index 294fd2a15e19..20b5987431a8 100644 --- a/dev-python/dulwich/dulwich-0.22.4.ebuild +++ b/dev-python/dulwich/dulwich-0.22.4.ebuild @@ -73,6 +73,18 @@ src_unpack() { cargo_src_unpack } +src_prepare() { + default + + if use !native-extensions; then + # avoid hard dep on rust via setuptools_rust + sed -i \ + -e '/from setuptools_rust/d' \ + -e '/^rust_extensions = \[/,/^\]/d' \ + setup.py || die + fi +} + python_compile() { unset PURE # TODO: enable Rust extensions