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 (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9F7F15800A for ; Fri, 1 Sep 2023 12:16:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ECE642BC013; Fri, 1 Sep 2023 12:16:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2A6B2BC014 for ; Fri, 1 Sep 2023 12:16: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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD787335D7D for ; Fri, 1 Sep 2023 12:16:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5127E10F9 for ; Fri, 1 Sep 2023 12:16:43 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1693570577.28e8cd00163f701b06610aa34d24393ee5fba74e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/reedsolo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/reedsolo/reedsolo-2.1.1_beta1-r1.ebuild X-VCS-Directories: dev-python/reedsolo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 28e8cd00163f701b06610aa34d24393ee5fba74e X-VCS-Branch: master Date: Fri, 1 Sep 2023 12:16:43 +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: c2045f08-c5f3-4791-9253-93aaeb5f0245 X-Archives-Hash: 70d8c564aeb9bd7809a5a4c3eea28a30 commit: 28e8cd00163f701b06610aa34d24393ee5fba74e Author: Alfred Wingate protonmail com> AuthorDate: Mon Aug 7 05:25:29 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 1 12:16:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28e8cd00 dev-python/reedsolo: preemptive pypy3 native-extensions disabling Signed-off-by: Alfred Wingate protonmail.com> Signed-off-by: Sam James gentoo.org> dev-python/reedsolo/reedsolo-2.1.1_beta1-r1.ebuild | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dev-python/reedsolo/reedsolo-2.1.1_beta1-r1.ebuild b/dev-python/reedsolo/reedsolo-2.1.1_beta1-r1.ebuild new file mode 100644 index 000000000000..715acdcf1fbf --- /dev/null +++ b/dev-python/reedsolo/reedsolo-2.1.1_beta1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python Reed Solomon encoder/decoder" +HOMEPAGE=" + https://github.com/tomerfiliba-org/reedsolomon/ + https://pypi.org/project/reedsolo/ +" + +LICENSE="|| ( Unlicense MIT-0 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+native-extensions" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/pytest-cov/d' pyproject.toml || die + distutils-r1_src_prepare +} + +python_compile() { + local DISTUTILS_ARGS=() + if use native-extensions && [[ ${EPYTHON} != pypy3 ]] ; then + DISTUTILS_ARGS+=( + # TODO: switch to --cythonize once we're on cython-3 + --native-compile + ) + fi + distutils-r1_python_compile +}