dev-python/immutables: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-03-24 06:37:13 +01:00
parent 137882402f
commit 6d03e87bef
3 changed files with 0 additions and 90 deletions

View File

@@ -1,2 +1 @@
DIST immutables-0.20.gh.tar.gz 88169 BLAKE2B fb76793d8d908ea35999a9d3d36cdb6cc2021fda07d0822b23bf1eb7fe02031ac26a7aa3e83e890af24b949eedf6d81089a3670e96f9873a60339d0da44d2484 SHA512 b20a661e4a9161a2fe3db674aac8e84a36dd3e56083e6f6d6b1261a00d38adc136c0a2dce67243a5a4cd5b0568aa48a9d4c758fb27cf74e055f378a501c0f725
DIST immutables-0.21.gh.tar.gz 88188 BLAKE2B be5f5e247f16549b1ccf2fa4a95b81818795d04a0ed934509dc3dcac985be4779ea3c2634cd9e8b57321d58ebf63ce828df08f39f19819e6b537ea3195ae87e3 SHA512 ffd754cd5f13f0d961ec05b1c19df4f9a25c0804a402d0dee91e163531eb9f30b50d8abb1252df775cb83922c69b02baa51bef5d6aa17d80fca57442b93d5e94

View File

@@ -1,28 +0,0 @@
From b1cb26389d8c8aa646c4debae429fb1515408812 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Mon, 13 May 2024 15:51:04 +0200
Subject: [PATCH] Support disabling C extensions via IMMUTABLES_EXT=0
Support using IMMUTABLES_EXT environment variable to control whether
the C extension is built explicitly. When set to a value other than 1,
the extension built is disabled. This is helpful e.g. for future Python
versions where the extension does not work (this is affecting 3.13 right
now, but having an explicit option is more future-proof).
---
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 8cfc9c97..870de2d1 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,8 @@
'unable to read the version from immutables/_version.py')
-if platform.python_implementation() == 'CPython':
+if (platform.python_implementation() == 'CPython' and
+ os.environ.get('IMMUTABLES_EXT', '1') == '1'):
if os.environ.get("DEBUG_IMMUTABLES") == '1':
define_macros = []
undef_macros = ['NDEBUG']

View File

@@ -1,61 +0,0 @@
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{10..13} )
inherit distutils-r1
DESCRIPTION="A high-performance immutable mapping type for Python"
HOMEPAGE="
https://github.com/MagicStack/immutables/
https://pypi.org/project/immutables/
"
SRC_URI="
https://github.com/MagicStack/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="+native-extensions"
distutils_enable_tests pytest
src_prepare() {
local PATCHES=(
# https://github.com/MagicStack/immutables/pull/117
"${FILESDIR}/${P}-opt-ext.patch"
)
sed -i -e '/mypy/d' tests/conftest.py || die
distutils-r1_src_prepare
}
python_compile() {
# upstream controls NDEBUG explicitly
use debug && local -x DEBUG_IMMUTABLES=1
local -x IMMUTABLES_EXT=$(usex native-extensions 1 0)
case ${EPYTHON} in
python3.13)
# https://github.com/MagicStack/immutables/issues/116
IMMUTABLES_EXT=0
;;
esac
distutils-r1_python_compile
}
python_test() {
local EPYTEST_IGNORE=(
tests/test_mypy.py
)
rm -rf immutables || die
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}