From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 19EC81584AD for ; Sat, 03 May 2025 15:04:47 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id F2E363430A4 for ; Sat, 03 May 2025 15:04:46 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id E94E1110287; Sat, 03 May 2025 15:04:45 +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 bobolink.gentoo.org (Postfix) with ESMTPS id E18EC110287 for ; Sat, 03 May 2025 15:04:45 +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 6C470343050 for ; Sat, 03 May 2025 15:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A0721E87 for ; Sat, 03 May 2025 15:04:44 +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: <1746284680.2408bbf65d6188df6e9da54a56f644f945d6a3e5.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zeroconf/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/zeroconf/zeroconf-0.146.5.ebuild X-VCS-Directories: dev-python/zeroconf/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2408bbf65d6188df6e9da54a56f644f945d6a3e5 X-VCS-Branch: master Date: Sat, 03 May 2025 15:04:44 +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: e0c41a1e-3ff3-461a-8057-f73879927db0 X-Archives-Hash: da1637b63bac74739dd0d04aa0d2451c commit: 2408bbf65d6188df6e9da54a56f644f945d6a3e5 Author: Michał Górny gentoo org> AuthorDate: Sat May 3 14:06:36 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 3 15:04:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2408bbf6 dev-python/zeroconf: Make extensions optional Signed-off-by: Michał Górny gentoo.org> dev-python/zeroconf/zeroconf-0.146.5.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dev-python/zeroconf/zeroconf-0.146.5.ebuild b/dev-python/zeroconf/zeroconf-0.146.5.ebuild index 4a09da4b8792..50846ac5b7c7 100644 --- a/dev-python/zeroconf/zeroconf-0.146.5.ebuild +++ b/dev-python/zeroconf/zeroconf-0.146.5.ebuild @@ -18,6 +18,7 @@ HOMEPAGE=" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="~amd64 ~arm arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+native-extensions" RDEPEND=" >=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}] @@ -25,7 +26,9 @@ RDEPEND=" # the build system uses custom build script that uses distutils to build # C extensions, sigh BDEPEND=" - >=dev-python/cython-3.0.8[${PYTHON_USEDEP}] + native-extensions? ( + >=dev-python/cython-3.0.8[${PYTHON_USEDEP}] + ) >=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}] test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] @@ -34,13 +37,21 @@ BDEPEND=" distutils_enable_tests pytest -export REQUIRE_CYTHON=1 - PATCHES=( # https://bugs.gentoo.org/954107 (workaround) "${FILESDIR}/zeroconf-0.146.5-cython-3.1.patch" ) +python_compile() { + if use native-extensions; then + local -x REQUIRE_CYTHON=1 + else + local -x SKIP_CYTHON=1 + fi + + distutils-r1_python_compile +} + python_test() { local -x SKIP_IPV6=1 local EPYTEST_DESELECT=(