mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
sci-electronics/cocotb: add 2.0.1-r1 for py3.14, drop 2.0.1
- Lift upstream setup.py max_python3_minor_version 13 to 14 via patch. - Verified: pip wheel build, C extensions, core imports OK on 3.14.5. Closes: https://bugs.gentoo.org/975540 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{12..13} )
|
PYTHON_COMPAT=( python3_{12..14} )
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
DISTUTILS_EXT=1
|
DISTUTILS_EXT=1
|
||||||
inherit distutils-r1 pypi
|
inherit distutils-r1 pypi
|
||||||
@@ -18,6 +18,10 @@ KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
|||||||
# Tests requires many eda tools, and can't work inside network sandbox
|
# Tests requires many eda tools, and can't work inside network sandbox
|
||||||
RESTRICT=test
|
RESTRICT=test
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-python-3.14.patch
|
||||||
|
)
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/find-libpython[${PYTHON_USEDEP}]
|
dev-python/find-libpython[${PYTHON_USEDEP}]
|
||||||
"
|
"
|
||||||
30
sci-electronics/cocotb/files/cocotb-2.0.1-python-3.14.patch
Normal file
30
sci-electronics/cocotb/files/cocotb-2.0.1-python-3.14.patch
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
From: Huang Rui <vowstar@gmail.com>
|
||||||
|
Date: Wed, 20 May 2026 11:00:00 +0800
|
||||||
|
Subject: [PATCH] setup: raise max supported Python to 3.14
|
||||||
|
|
||||||
|
Gentoo systems ship python3_14 in the default profile. Upstream caps
|
||||||
|
installation at Python 3.13 via a hardcoded check in setup.py and
|
||||||
|
points at the COCOTB_IGNORE_PYTHON_REQUIRES environment variable as
|
||||||
|
the documented opt-out, explicitly without compatibility guarantees.
|
||||||
|
Lift the cap to 3.14 so the install-time gate accepts the Gentoo
|
||||||
|
default while leaving the 3.15+ gate in place.
|
||||||
|
|
||||||
|
Bug: https://bugs.gentoo.org/975540
|
||||||
|
Upstream-Status: Not applicable (downstream version-gate bypass)
|
||||||
|
Signed-off-by: Huang Rui <vowstar@gmail.com>
|
||||||
|
---
|
||||||
|
setup.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -34,7 +34,7 @@
|
||||||
|
|
||||||
|
__version__ = "2.0.1"
|
||||||
|
|
||||||
|
-max_python3_minor_version = 13
|
||||||
|
+max_python3_minor_version = 14
|
||||||
|
if "COCOTB_IGNORE_PYTHON_REQUIRES" not in os.environ and sys.version_info >= (
|
||||||
|
3,
|
||||||
|
max_python3_minor_version + 1,
|
||||||
Reference in New Issue
Block a user