commit: 71f363472c96c4ab3132c93fd3e1d4020b56fab9
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 4 03:25:59 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jan 4 03:55:01 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71f36347
dev-python/cython: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cython/Manifest | 5 --
dev-python/cython/cython-3.1.5.ebuild | 128 ---------------------------------
dev-python/cython/cython-3.1.6.ebuild | 128 ---------------------------------
dev-python/cython/cython-3.2.0.ebuild | 128 ---------------------------------
dev-python/cython/cython-3.2.1.ebuild | 128 ---------------------------------
dev-python/cython/cython-3.2.2.ebuild | 129 ----------------------------------
6 files changed, 646 deletions(-)
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 2acd09c4d1a6..c913b70a28a8 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -1,8 +1,3 @@
DIST cython-3.1.4.tar.gz 3190778 BLAKE2B
7e554db21ba009dc70157ad03b414091f9bba15586c5fa842b23cc28c116dc153857e99c9981dd0f783f696b6afa3b2689424231b88ae89bcf9233fa8006b9c9
SHA512
dd524d7de59f949a8bac1cb944a7a2b4eb26b13107db4fd6f9af000d5af18dd08ac5768253721e3513f5b4c1593fdd8cf055f4ffc17d541b2b90ca461522e8f1
-DIST cython-3.1.5.tar.gz 3192050 BLAKE2B
c076c14685cc0d01d3f70dd35c8dd6c8c6c285f0a7cd575b4b20d6b4ce941e8cc70e1859b4185e0bc485c6963e74e5b33fe9030ec9feb881cc8692434f497ae8
SHA512
cff0cebd3b72b47f92a0bb8f77e564655a966ee58442b7fe76db2263b8b0d5b3636bfb0a561b1f27fd10cfd113e52388b32971bea66f4d2cb6dbf8580465b873
-DIST cython-3.1.6.tar.gz 3192329 BLAKE2B
78ea2c33ce38441574c0566b2c093ed91c01b523812484a8da5f426c46d64d0e4c67c2b3e1bf8122c399a9c18372fe93ff63d20fcc2907e0a84c79fd1107d79d
SHA512
29950bcb02b2000ffd278a881d91e9c99f554375238a1ea1e7866d6fff120233bca8d7a7c05de93136fddacdb4c071652de8c3b63b6c312dff43435193fe7b89
DIST cython-3.1.7.tar.gz 3192740 BLAKE2B
ed0d15e387389de3e2b35d03326032a0ca112b24b0245ed764e5acbedcc0df07f50561ef18715679bf29fd2da6a288621033722741b2fc25809b43964e856786
SHA512
0d1ab6b0d53168588ea03116a5a2f4106f87266bca0fc46ec9ebc7c881da7ee2a83d9d7d841b551add73aedab7b2ca94419e87f6a387b1ab7ba850030a981fb1
-DIST cython-3.2.0.tar.gz 3267264 BLAKE2B
86aa3698f28c0859d0a846025698d4739deebdbabbf0f6bd9134b4a01fce3fce4b87b1db726c2ab490b0a41091185183f41a67424dfd555067167a4b257c6aa7
SHA512
902f8389792bfa7937f5e1c024a537561e7e0367d1e6e6eefa84ebc25e961968e95bda5095b1cf2b26e994b4b14c0a039b97df80066620c166368a3f0ebd7f4b
-DIST cython-3.2.1.tar.gz 3270455 BLAKE2B
10eb8e6e027b3cc594c997efed4e98ded445f666c44ff7d9d027ae32bead6826df22508bbc78241684e7dcdcbe178a70b5d909c5ab541b5c49660f961f2abe26
SHA512
b6f64b2c32c355a9c5a3586fdea768ad1924cb4b421d4395d443dadc1cf06e2fe4f3f85d237789eb0a68c9857750cbefefb022475ed7f3d8787551bea3d2fb7d
-DIST cython-3.2.2.tar.gz 3275797 BLAKE2B
bd6b699514b099ec680d49c00f547357c76621e08e8607c24fcb98d975cd03b3d3fc9161d66775f5d02c3281c7e01e1a80d61bc56e49f9f04c52927e51a83c7f
SHA512
788c05b4e2dcc5ae3f6ecfbb6a5e4bfa5c19afdfe3047ed5a34be994c7d81f165b4ee0a162c349ab2ff0912380fc2836e98e442d93ac6522f75e63a5c3522d27
DIST cython-3.2.3.tar.gz 3276650 BLAKE2B
4f527760e1c658d0ace5b5f268e6cc73f823f3703830bf8a458f6bcd2a488eaa0d869c02358d2ec3d469b34de4f3b9b7a1c415f159dca22197c3fcb8d732856f
SHA512
00bf2244da9c544fd3ea110cd1ab2aeadeb7e1df16fff4fdc926b90759c75f312c11171513d55dad6b5489f77c7c462905b789242641d6d6807b172db1a57b87
diff --git a/dev-python/cython/cython-3.1.5.ebuild
b/dev-python/cython/cython-3.1.5.ebuild
deleted file mode 100644
index 0e156a70a8b4..000000000000
--- a/dev-python/cython/cython-3.1.5.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_FULLY_TESTED=( python3_{11..14} )
-PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 multiprocessing pypi toolchain-funcs
-
-DESCRIPTION="A Python to C compiler"
-HOMEPAGE="
- https://cython.org/
- https://github.com/cython/cython/
- https://pypi.org/project/Cython/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="test test-full"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- ${RDEPEND}
- test? (
- test-full? (
- $(python_gen_cond_dep '
- dev-python/numpy[${PYTHON_USEDEP}]
- ' "${PYTHON_FULLY_TESTED[@]}")
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
-)
-
-distutils_enable_sphinx docs \
- dev-python/jinja2 \
- dev-python/sphinx-issues \
- dev-python/sphinx-tabs
-
-python_compile() {
- # Python gets confused when it is in sys.path before build.
- local -x PYTHONPATH=
-
- if use elibc_musl ; then
- # Workaround for bug #925318
- local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
- fi
-
- distutils-r1_python_compile
-}
-
-python_test() {
- # PYTHON_TESTED controls whether we expect the testsuite to
- # pass at all, while PYTHON_FULLY_TESTED allows skipping before
- # numpy is ported (and possibly other deps in future).
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON} (xfail)"
- return
- fi
-
- # Needed to avoid confusing cache tests
- unset CYTHON_FORCE_REGEN
-
- tc-export CC
-
- local testargs=(
- -vv
- -j "$(makeopts_jobs)"
- --work-dir "${BUILD_DIR}"/tests
-
- --no-examples
- --no-code-style
-
- # Fails to find embedded.c
- --exclude 'embedded'
- # coverage_installed_pkg needs dev-python/pip and doesn't like
- # 'externally-managed' (bug #927995), but we don't really
- # want automagic test dependencies at all, so just skip
- # unimportant-for-us coverage tests entirely.
- --exclude 'run.coverage*'
- --exclude 'Cython.Coverage'
- # Automagic on dev-python/python-tests, could add this in future
- --exclude 'run.test_exceptions'
- # TODO: Unpackaged dev-python/interpreters-pep-734
(interpreters_backport)
- # This only shows up as a failure with >=3.13.
- --exclude 'subinterpreters_threading_stress_test'
-
- # The fix for https://github.com/cython/cython/issues/6938
- # changes these tests s.t. they break with our build layout.
- --exclude 'build.depfile*'
- )
-
- if [[ ${EPYTHON} == pypy3* ]] ; then
- testargs+=(
- # Recursion issue
- --exclude 'run.if_else_expr'
- --exclude 'run.test_patma*'
- # Slight output difference (missing '<')
- --exclude 'run.cpp_exception_ptr_just_handler'
-
- )
- fi
-
- # Keep test-full for numpy as it's large and doesn't pass tests itself
- # on niche arches.
- if ! use test-full || ! has "${EPYTHON/./_}"
"${PYTHON_FULLY_TESTED[@]}"; then
- testargs+=(
- --exclude 'run.numpy*'
- --exclude 'run.ufunc'
- --exclude 'numpy*'
- )
- fi
-
- "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with
${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
- distutils-r1_python_install_all
-}
diff --git a/dev-python/cython/cython-3.1.6.ebuild
b/dev-python/cython/cython-3.1.6.ebuild
deleted file mode 100644
index d2d260e044cc..000000000000
--- a/dev-python/cython/cython-3.1.6.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_FULLY_TESTED=( python3_{11..14} )
-PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 multiprocessing pypi toolchain-funcs
-
-DESCRIPTION="A Python to C compiler"
-HOMEPAGE="
- https://cython.org/
- https://github.com/cython/cython/
- https://pypi.org/project/Cython/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv
~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="test test-full"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- ${RDEPEND}
- test? (
- test-full? (
- $(python_gen_cond_dep '
- dev-python/numpy[${PYTHON_USEDEP}]
- ' "${PYTHON_FULLY_TESTED[@]}")
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
-)
-
-distutils_enable_sphinx docs \
- dev-python/jinja2 \
- dev-python/sphinx-issues \
- dev-python/sphinx-tabs
-
-python_compile() {
- # Python gets confused when it is in sys.path before build.
- local -x PYTHONPATH=
-
- if use elibc_musl ; then
- # Workaround for bug #925318
- local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
- fi
-
- distutils-r1_python_compile
-}
-
-python_test() {
- # PYTHON_TESTED controls whether we expect the testsuite to
- # pass at all, while PYTHON_FULLY_TESTED allows skipping before
- # numpy is ported (and possibly other deps in future).
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON} (xfail)"
- return
- fi
-
- # Needed to avoid confusing cache tests
- unset CYTHON_FORCE_REGEN
-
- tc-export CC
-
- local testargs=(
- -vv
- -j "$(makeopts_jobs)"
- --work-dir "${BUILD_DIR}"/tests
-
- --no-examples
- --no-code-style
-
- # Fails to find embedded.c
- --exclude 'embedded'
- # coverage_installed_pkg needs dev-python/pip and doesn't like
- # 'externally-managed' (bug #927995), but we don't really
- # want automagic test dependencies at all, so just skip
- # unimportant-for-us coverage tests entirely.
- --exclude 'run.coverage*'
- --exclude 'Cython.Coverage'
- # Automagic on dev-python/python-tests, could add this in future
- --exclude 'run.test_exceptions'
- # TODO: Unpackaged dev-python/interpreters-pep-734
(interpreters_backport)
- # This only shows up as a failure with >=3.13.
- --exclude 'subinterpreters_threading_stress_test'
-
- # The fix for https://github.com/cython/cython/issues/6938
- # changes these tests s.t. they break with our build layout.
- --exclude 'build.depfile*'
- )
-
- if [[ ${EPYTHON} == pypy3* ]] ; then
- testargs+=(
- # Recursion issue
- --exclude 'run.if_else_expr'
- --exclude 'run.test_patma*'
- # Slight output difference (missing '<')
- --exclude 'run.cpp_exception_ptr_just_handler'
-
- )
- fi
-
- # Keep test-full for numpy as it's large and doesn't pass tests itself
- # on niche arches.
- if ! use test-full || ! has "${EPYTHON/./_}"
"${PYTHON_FULLY_TESTED[@]}"; then
- testargs+=(
- --exclude 'run.numpy*'
- --exclude 'run.ufunc'
- --exclude 'numpy*'
- )
- fi
-
- "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with
${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
- distutils-r1_python_install_all
-}
diff --git a/dev-python/cython/cython-3.2.0.ebuild
b/dev-python/cython/cython-3.2.0.ebuild
deleted file mode 100644
index 0e156a70a8b4..000000000000
--- a/dev-python/cython/cython-3.2.0.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_FULLY_TESTED=( python3_{11..14} )
-PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 multiprocessing pypi toolchain-funcs
-
-DESCRIPTION="A Python to C compiler"
-HOMEPAGE="
- https://cython.org/
- https://github.com/cython/cython/
- https://pypi.org/project/Cython/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="test test-full"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- ${RDEPEND}
- test? (
- test-full? (
- $(python_gen_cond_dep '
- dev-python/numpy[${PYTHON_USEDEP}]
- ' "${PYTHON_FULLY_TESTED[@]}")
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
-)
-
-distutils_enable_sphinx docs \
- dev-python/jinja2 \
- dev-python/sphinx-issues \
- dev-python/sphinx-tabs
-
-python_compile() {
- # Python gets confused when it is in sys.path before build.
- local -x PYTHONPATH=
-
- if use elibc_musl ; then
- # Workaround for bug #925318
- local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
- fi
-
- distutils-r1_python_compile
-}
-
-python_test() {
- # PYTHON_TESTED controls whether we expect the testsuite to
- # pass at all, while PYTHON_FULLY_TESTED allows skipping before
- # numpy is ported (and possibly other deps in future).
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON} (xfail)"
- return
- fi
-
- # Needed to avoid confusing cache tests
- unset CYTHON_FORCE_REGEN
-
- tc-export CC
-
- local testargs=(
- -vv
- -j "$(makeopts_jobs)"
- --work-dir "${BUILD_DIR}"/tests
-
- --no-examples
- --no-code-style
-
- # Fails to find embedded.c
- --exclude 'embedded'
- # coverage_installed_pkg needs dev-python/pip and doesn't like
- # 'externally-managed' (bug #927995), but we don't really
- # want automagic test dependencies at all, so just skip
- # unimportant-for-us coverage tests entirely.
- --exclude 'run.coverage*'
- --exclude 'Cython.Coverage'
- # Automagic on dev-python/python-tests, could add this in future
- --exclude 'run.test_exceptions'
- # TODO: Unpackaged dev-python/interpreters-pep-734
(interpreters_backport)
- # This only shows up as a failure with >=3.13.
- --exclude 'subinterpreters_threading_stress_test'
-
- # The fix for https://github.com/cython/cython/issues/6938
- # changes these tests s.t. they break with our build layout.
- --exclude 'build.depfile*'
- )
-
- if [[ ${EPYTHON} == pypy3* ]] ; then
- testargs+=(
- # Recursion issue
- --exclude 'run.if_else_expr'
- --exclude 'run.test_patma*'
- # Slight output difference (missing '<')
- --exclude 'run.cpp_exception_ptr_just_handler'
-
- )
- fi
-
- # Keep test-full for numpy as it's large and doesn't pass tests itself
- # on niche arches.
- if ! use test-full || ! has "${EPYTHON/./_}"
"${PYTHON_FULLY_TESTED[@]}"; then
- testargs+=(
- --exclude 'run.numpy*'
- --exclude 'run.ufunc'
- --exclude 'numpy*'
- )
- fi
-
- "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with
${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
- distutils-r1_python_install_all
-}
diff --git a/dev-python/cython/cython-3.2.1.ebuild
b/dev-python/cython/cython-3.2.1.ebuild
deleted file mode 100644
index 0e156a70a8b4..000000000000
--- a/dev-python/cython/cython-3.2.1.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_FULLY_TESTED=( python3_{11..14} )
-PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 multiprocessing pypi toolchain-funcs
-
-DESCRIPTION="A Python to C compiler"
-HOMEPAGE="
- https://cython.org/
- https://github.com/cython/cython/
- https://pypi.org/project/Cython/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="test test-full"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- ${RDEPEND}
- test? (
- test-full? (
- $(python_gen_cond_dep '
- dev-python/numpy[${PYTHON_USEDEP}]
- ' "${PYTHON_FULLY_TESTED[@]}")
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
-)
-
-distutils_enable_sphinx docs \
- dev-python/jinja2 \
- dev-python/sphinx-issues \
- dev-python/sphinx-tabs
-
-python_compile() {
- # Python gets confused when it is in sys.path before build.
- local -x PYTHONPATH=
-
- if use elibc_musl ; then
- # Workaround for bug #925318
- local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
- fi
-
- distutils-r1_python_compile
-}
-
-python_test() {
- # PYTHON_TESTED controls whether we expect the testsuite to
- # pass at all, while PYTHON_FULLY_TESTED allows skipping before
- # numpy is ported (and possibly other deps in future).
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON} (xfail)"
- return
- fi
-
- # Needed to avoid confusing cache tests
- unset CYTHON_FORCE_REGEN
-
- tc-export CC
-
- local testargs=(
- -vv
- -j "$(makeopts_jobs)"
- --work-dir "${BUILD_DIR}"/tests
-
- --no-examples
- --no-code-style
-
- # Fails to find embedded.c
- --exclude 'embedded'
- # coverage_installed_pkg needs dev-python/pip and doesn't like
- # 'externally-managed' (bug #927995), but we don't really
- # want automagic test dependencies at all, so just skip
- # unimportant-for-us coverage tests entirely.
- --exclude 'run.coverage*'
- --exclude 'Cython.Coverage'
- # Automagic on dev-python/python-tests, could add this in future
- --exclude 'run.test_exceptions'
- # TODO: Unpackaged dev-python/interpreters-pep-734
(interpreters_backport)
- # This only shows up as a failure with >=3.13.
- --exclude 'subinterpreters_threading_stress_test'
-
- # The fix for https://github.com/cython/cython/issues/6938
- # changes these tests s.t. they break with our build layout.
- --exclude 'build.depfile*'
- )
-
- if [[ ${EPYTHON} == pypy3* ]] ; then
- testargs+=(
- # Recursion issue
- --exclude 'run.if_else_expr'
- --exclude 'run.test_patma*'
- # Slight output difference (missing '<')
- --exclude 'run.cpp_exception_ptr_just_handler'
-
- )
- fi
-
- # Keep test-full for numpy as it's large and doesn't pass tests itself
- # on niche arches.
- if ! use test-full || ! has "${EPYTHON/./_}"
"${PYTHON_FULLY_TESTED[@]}"; then
- testargs+=(
- --exclude 'run.numpy*'
- --exclude 'run.ufunc'
- --exclude 'numpy*'
- )
- fi
-
- "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with
${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
- distutils-r1_python_install_all
-}
diff --git a/dev-python/cython/cython-3.2.2.ebuild
b/dev-python/cython/cython-3.2.2.ebuild
deleted file mode 100644
index 23fc59df0adf..000000000000
--- a/dev-python/cython/cython-3.2.2.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_FULLY_TESTED=( python3_{11..14} )
-PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 multiprocessing pypi toolchain-funcs
-
-DESCRIPTION="A Python to C compiler"
-HOMEPAGE="
- https://cython.org/
- https://github.com/cython/cython/
- https://pypi.org/project/Cython/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
-IUSE="test test-full"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- ${RDEPEND}
- test? (
- test-full? (
- $(python_gen_cond_dep '
- dev-python/numpy[${PYTHON_USEDEP}]
- ' "${PYTHON_FULLY_TESTED[@]}")
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
-)
-
-distutils_enable_sphinx docs \
- dev-python/jinja2 \
- dev-python/sphinx-issues \
- dev-python/sphinx-tabs
-
-python_compile() {
- # Python gets confused when it is in sys.path before build.
- local -x PYTHONPATH=
-
- if use elibc_musl ; then
- # Workaround for bug #925318
- local -x LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152"
- fi
-
- distutils-r1_python_compile
-}
-
-python_test() {
- # PYTHON_TESTED controls whether we expect the testsuite to
- # pass at all, while PYTHON_FULLY_TESTED allows skipping before
- # numpy is ported (and possibly other deps in future).
- if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
- einfo "Skipping tests on ${EPYTHON} (xfail)"
- return
- fi
-
- # Needed to avoid confusing cache tests
- unset CYTHON_FORCE_REGEN
-
- tc-export CC
-
- local testargs=(
- -vv
- -j "$(makeopts_jobs)"
- --work-dir "${BUILD_DIR}"/tests
-
- --no-examples
- --no-code-style
-
- # Fails to find embedded.c
- --exclude 'embedded'
- # coverage_installed_pkg needs dev-python/pip and doesn't like
- # 'externally-managed' (bug #927995), but we don't really
- # want automagic test dependencies at all, so just skip
- # unimportant-for-us coverage tests entirely.
- --exclude 'run.coverage*'
- --exclude 'Cython.Coverage'
- # Automagic on dev-python/python-tests, could add this in future
- --exclude 'run.test_exceptions'
- # TODO: Unpackaged dev-python/interpreters-pep-734
(interpreters_backport)
- # This only shows up as a failure with >=3.13.
- --exclude 'subinterpreters_threading_stress_test'
-
- # The fix for https://github.com/cython/cython/issues/6938
- # changes these tests s.t. they break with our build layout.
- --exclude 'build.depfile*'
- )
-
- if [[ ${EPYTHON} == pypy3* ]] ; then
- testargs+=(
- # Recursion issue
- --exclude 'run.if_else_expr'
- --exclude 'run.test_patma*'
- # Slight output difference (missing '<')
- --exclude 'run.cpp_exception_ptr_just_handler'
- # No freethreading here
- --exclude 'run.freethreaded_list_indexing_stress_test'
- )
- fi
-
- # Keep test-full for numpy as it's large and doesn't pass tests itself
- # on niche arches.
- if ! use test-full || ! has "${EPYTHON/./_}"
"${PYTHON_FULLY_TESTED[@]}"; then
- testargs+=(
- --exclude 'run.numpy*'
- --exclude 'run.ufunc'
- --exclude 'numpy*'
- )
- fi
-
- "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with
${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
- distutils-r1_python_install_all
-}