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 A40B6158042 for ; Sat, 19 Oct 2024 06:04:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53553E0891; Sat, 19 Oct 2024 06:04:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 3F2AAE0891 for ; Sat, 19 Oct 2024 06:04:00 +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 45B383430C2 for ; Sat, 19 Oct 2024 06:03:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 953842191 for ; Sat, 19 Oct 2024 06:03:56 +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: <1729317831.7d6732fcac35b4aa84b02400d6ebb3d71752de75.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zope-interface/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/zope-interface/zope-interface-7.1.0.ebuild X-VCS-Directories: dev-python/zope-interface/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7d6732fcac35b4aa84b02400d6ebb3d71752de75 X-VCS-Branch: master Date: Sat, 19 Oct 2024 06:03:56 +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: e004d543-2638-404b-868e-69f82434a1bd X-Archives-Hash: a1674d3014e0b7f06ae9948cba9ec673 commit: 7d6732fcac35b4aa84b02400d6ebb3d71752de75 Author: Michał Górny gentoo org> AuthorDate: Sat Oct 19 06:00:40 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 19 06:03:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d6732fc dev-python/zope-interface: Make C extensions optional Signed-off-by: Michał Górny gentoo.org> dev-python/zope-interface/zope-interface-7.1.0.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-python/zope-interface/zope-interface-7.1.0.ebuild b/dev-python/zope-interface/zope-interface-7.1.0.ebuild index 89fda95e3a95..9ed42172d167 100644 --- a/dev-python/zope-interface/zope-interface-7.1.0.ebuild +++ b/dev-python/zope-interface/zope-interface-7.1.0.ebuild @@ -19,6 +19,7 @@ HOMEPAGE=" LICENSE="ZPL" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="+native-extensions" BDEPEND=" test? ( @@ -36,6 +37,9 @@ src_prepare() { sed -i -e "/'setuptools'/d" setup.py || die # force failure if extension build fails sed -i -e "/'build_ext':/d" setup.py || die + if ! use native-extensions; then + sed -i -e '/ext_modules=/d' setup.py || die + fi } python_compile() { @@ -44,6 +48,11 @@ python_compile() { } python_test() { + local -x PURE_PYTHON=0 + if ! use native-extensions || [[ ${EPYTHON} == pypy3 ]]; then + PURE_PYTHON=1 + fi + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die distutils_write_namespace zope eunittest