dev-python/pythran: Bump to 0.19.0_rc1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-12 14:30:13 +02:00
parent 78a2e1f020
commit a125eb8b4e
2 changed files with 119 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pythran-0.18.1.gh.tar.gz 3714257 BLAKE2B 711f271297a6012a88a696df749efda8ca4c53e236a646bf2285ba80d0151b1117492c024eb8ab2e5f7337b1f9838332dba480a00a9c2a9216cbbeda78f971a8 SHA512 15650627b9396b49401067c3a7c161d1569f89f29a08243aa85659023e42ce028633915c51c8c5188a5599c201eb30aa2721d64ba766b2a252203469bc6e2ab1
DIST pythran-0.19.0.rc1.gh.tar.gz 3781467 BLAKE2B d33b42a9c0aaed95ddc6598b3b745d0a1bae4d96314491c39c83a15fb5677751abb40e17de36beacc4935fec2591862140ea88071ca2520c24f819fbcbafebc9 SHA512 2e865446cf2799db0ac56ac6b91dc23827432ad1af0d012c86bf26225683dc6e3bbe90c3d1dec775d1aaacb3f7f63afc99a1474972df3fcccd5085ec34d27611

View File

@@ -0,0 +1,118 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1
MY_P=${P/_/.}
DESCRIPTION="Ahead of Time compiler for numeric kernels"
HOMEPAGE="
https://pypi.org/project/pythran/
https://github.com/serge-sans-paille/pythran/
"
SRC_URI="
https://github.com/serge-sans-paille/pythran/archive/${PV/_/.}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
if [[ ${PV} != *_rc* ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
RDEPEND="
dev-libs/boost
dev-cpp/xsimd
>=dev-python/beniget-0.5[${PYTHON_USEDEP}]
>=dev-python/gast-0.7[${PYTHON_USEDEP}]
dev-python/numpy:=[${PYTHON_USEDEP}]
>=dev-python/ply-3.4[${PYTHON_USEDEP}]
>=dev-python/setuptools-73.0.1[${PYTHON_USEDEP}]
"
DEPEND="
test? (
dev-libs/boost
dev-cpp/xsimd
)
"
BDEPEND="
test? (
dev-python/pip[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
virtual/cblas
!!dev-python/setuptools-declarative-requirements
)
"
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# vendored C++ headers -- use system copies
rm -r pythran/{boost,xsimd} || die
# https://bugs.gentoo.org/916461
sed -i \
-e 's|blas=blas|blas=cblas|' \
-e 's|libs=|libs=cblas|' \
pythran/pythran-*.cfg || die
# unpin dependencies
sed -i -e 's:~=:>=:' requirements.txt || die
}
python_test() {
local EPYTEST_DESELECT=(
# multiple extra deps (meson, openblas)
# also broken on pypy3*
pythran/tests/test_distutils.py::TestMeson::test_meson_build
# numpy.distutils is dead and broken
pythran/tests/test_distutils.py::TestDistutils
# numpy changes
pythran/tests/test_numpy_func0.py::TestNumpyFunc0::test_cross1
pythran/tests/test_numpy_func0.py::TestNumpyFunc0::test_cross4
)
local EPYTEST_IGNORE=(
pythran/benchmarks
)
if ! has_version "dev-python/ipython[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
pythran/tests/test_ipython.py
)
fi
case ${ARCH} in
arm)
EPYTEST_DESELECT+=(
# TODO
pythran/tests/test_numpy_fft.py::TestNumpyFFT::test_fft_3d_axis
pythran/tests/test_numpy_fft.py::TestNumpyFFTN
)
;;
esac
case ${EPYTHON} in
python3.15*)
EPYTEST_DESELECT+=(
pythran/tests/test_array.py::TestArray::test_typecodes
)
;;
esac
# can easily fill up ccache with no real benefit
local -x CCACHE_DISABLE=1
local -x COLUMNS=80
epytest
}