dev-python/numpy: add 1.26.0
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
5e1955798a
commit
f67aaafd22
@ -4,8 +4,10 @@ AUX numpy-1.21.4-build-compiler-args-ceph.patch 2033 BLAKE2B 63aae1b73e41332d517
|
||||
AUX numpy-1.21.4-copy-python-3.9.patch 1698 BLAKE2B 7274c22c38820a01b02ed899f45afce95a3e5fda74f0417809caab1bf28c1e56348785c9209233ad46b00138606364548a80b5b4120b2d96f0a8cccda0d5187f SHA512 92635f37f4de7992cce2c96861fc28151fe5b6adb979db4b6a4ec456c8a84d58a8bf3ab612c1b83a5a507d96b4084d250c5d7855d245057f6977bc6a899f5a14
|
||||
AUX numpy-1.22.0-no-hardcode-blasv2.patch 2710 BLAKE2B 71da07805e25acc58120da2b8d8692ec5893040eee3c2842620e2a9186062936082f34610d3056c44e44a921116f99158dfb7481c4eccc82d33b3b18a63b379e SHA512 87bcecee3435dedcd87128c81d0002a786b4b23928973216f32c8d12b797d6a9948c3e7b41142235abe35734683e6ef84c02ffe255ba492a0ad43626071dc5a9
|
||||
DIST numpy-1.23.2.tar.gz 10719306 BLAKE2B d9f41d34331a3b5690e0bd4eedf050c31e088e1d6b01af6fed7e2bacc281ba7587975c5fda690c8b8f392ddef1a2ab2b6a18f6098d55876485eae58d36f98212 SHA512 ac5ed21887d41c94d395bfee2bb5492453b375344e43a9944224dac2eb13c6ad7477aa7a626d032d27b1c610e269232998ecc77a327da887748e794bf28c3feb
|
||||
DIST numpy-1.26.0.tar.gz 15633455 BLAKE2B 9cd8693d1303bc9ac6d95a6cd57440839adbd648efae7052cf9b73f833eb8ebb2a0ad09fcc638e51b481b4c049a02304eeef34a7566609ae2cbab3278d033a97 SHA512 0d500c623b274a219740c78ae2febb32a2f167016a9ff529678526e6b3e89a5b732c41defa23460a5da6f7f89d4a7d827f44fa9a1334c78e204b00ce164fb40c
|
||||
DIST numpy-html-1.23.2.zip 27964271 BLAKE2B 0aa26d7c39f2d6b119e404dfb9642967770881ee0d640157a9ed11d16f21cd43109bed3c08f89fda457ec470292d945e2bf8b2dab56e4b36192d5e8eb3757b44 SHA512 218a2e893816af767c7cedd1f2256e05f68e59491c29277c95de653a206aaff35c5fe3bc6afd6d6d5ea7957748ec565593eb30d004e36e94c894ea4a6884902a
|
||||
DIST numpy-ref-1.23.2.pdf 7715485 BLAKE2B 7fbb0ce29e86fc7cd4932a6a9f0221b579b6cae695231edfebf863e5b4c2920796d802ccf9ae3e05b331964ac7c4f51099578d91b6b7fb357c6de2110a5f7cba SHA512 6036c6a36f332b83f371c7530a6ba6f354b1334d667d2a52993a1e52aa9d94d524e216f768928a006c717ed4b4131879f6e491a294ecfd3a0d1b0f9f937a887a
|
||||
DIST numpy-user-1.23.2.pdf 4123384 BLAKE2B d4587c9f979e1ef4734768598d6e106f2b4b0c8222f901a6c4caf0920e41622201252c5bd172b16346e0357138b5ff27c59e56c851be5ae3b7712624bd9cc5b4 SHA512 58e1ab96d2cfbd96df205c86f0a1a09e204349f70d21df7f8481c21ded8b46f4b9ede3216d5cce6c2b9bfc0aacbecdfa198bdb2d4c258a0dd4acb6e3ba421f9c
|
||||
EBUILD numpy-1.23.2.ebuild 4724 BLAKE2B f5118194f482ae5900895afc554763ccbbf723fd56d689cab2777ff35b8e67b80889f52cf4eb4b05a99bdfe92e10ca3cd0681c5b71e9a50511608f208ea4a592 SHA512 25e6ca530575fcf59ed05c70a367192934fd8c2655a8464406e6f08e8128d349603652e6fa9e6f4298e346fc3c937aaaf738fb54be63b149fc9ec9f9fe9d5bfd
|
||||
EBUILD numpy-1.26.0.ebuild 4226 BLAKE2B e6f490e8f1646659f1554c21a5576e1b3da5da08e3d5d20a96733a5101857461b817797318bd15b36fe7e51b6008cb107dc7e019f5309665a3fdea9949a58d74 SHA512 3bab172e00130f28f0165c342442e4ed98718d5bfb5f87c8aa20f6113c18095f23be097d0c8813509f3169858c7695e4468f8335a8faa936c3c5c3194f166cdf
|
||||
MISC metadata.xml 514 BLAKE2B 73e70ba81cbcab8b122dcad7049b1aeb4b94ca85523404ed38371b6373d5805b3f320249fdecc91f00bceb3837e6c0259ab4d082699f8aa55e84c6c3d49505ea SHA512 959b1ffbd1f73984efa2efbfaf4e9a4419ca5f7a61e07a96d1589f6be09a1e286e91818504f5627bfc12655008815de2fa81cfb3f7b4702bb6eb70751f80ead0
|
||||
|
||||
152
dev-python/numpy/numpy-1.26.0.ebuild
Normal file
152
dev-python/numpy/numpy-1.26.0.ebuild
Normal file
@ -0,0 +1,152 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=meson-python
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
||||
inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi toolchain-funcs
|
||||
|
||||
DESCRIPTION="Fast array and numerical python library"
|
||||
HOMEPAGE="
|
||||
https://numpy.org/
|
||||
https://github.com/numpy/numpy/
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
# +lapack because the internal fallbacks are pretty slow. Building without blas
|
||||
# is barely supported anyway, see bug #914358.
|
||||
IUSE="+lapack"
|
||||
if [[ ${PV} != *_[rab]* ]] ; then
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
lapack? (
|
||||
>=virtual/cblas-3.8
|
||||
>=virtual/lapack-3.8
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
>=dev-util/meson-1.1.0
|
||||
>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
|
||||
lapack? (
|
||||
virtual/pkgconfig
|
||||
)
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
|
||||
' 'python*')
|
||||
dev-python/charset-normalizer[${PYTHON_USEDEP}]
|
||||
>=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
DISTUTILS_ARGS=(
|
||||
-Dallow-noblas=$(usex !lapack true false)
|
||||
-Dblas=$(usev lapack cblas)
|
||||
-Dlapack=$(usev lapack lapack)
|
||||
# TODO: cpu-* options
|
||||
)
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Very disk-and-memory-hungry
|
||||
lib/tests/test_io.py::TestSaveTxt::test_large_zip
|
||||
lib/tests/test_io.py::TestSavezLoad::test_closing_fid
|
||||
lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load
|
||||
|
||||
# Precision problems
|
||||
core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
|
||||
|
||||
# Runs the whole test suite recursively, that's just crazy
|
||||
core/tests/test_mem_policy.py::test_new_policy
|
||||
|
||||
typing/tests/test_typing.py
|
||||
# Uses huge amount of memory
|
||||
core/tests/test_mem_overlap.py
|
||||
|
||||
# TODO: crashes
|
||||
lib/tests/test_histograms.py::TestHistogram::test_big_arrays
|
||||
)
|
||||
|
||||
if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then
|
||||
# Degenerate case of arm32 chroot on arm64, bug #774108
|
||||
EPYTEST_DESELECT+=(
|
||||
core/tests/test_cpu_features.py::Test_ARM_Features::test_features
|
||||
)
|
||||
fi
|
||||
|
||||
if use x86 ; then
|
||||
EPYTEST_DESELECT+=(
|
||||
# https://github.com/numpy/numpy/issues/18388
|
||||
core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow
|
||||
# https://github.com/numpy/numpy/issues/18387
|
||||
random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto
|
||||
# more precision problems
|
||||
core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16
|
||||
)
|
||||
fi
|
||||
|
||||
if use hppa ; then
|
||||
EPYTEST_DESELECT+=(
|
||||
# TODO: Get selectedrealkind updated!
|
||||
# bug #907228
|
||||
# https://github.com/numpy/numpy/issues/3424 (https://github.com/numpy/numpy/issues/3424#issuecomment-412369029)
|
||||
# https://github.com/numpy/numpy/pull/21785
|
||||
f2py/tests/test_kind.py::TestKind::test_real
|
||||
f2py/tests/test_kind.py::TestKind::test_quad_precision
|
||||
)
|
||||
fi
|
||||
|
||||
if [[ $(tc-endian) == "big" ]] ; then
|
||||
# https://github.com/numpy/numpy/issues/11831 and bug #707116
|
||||
EPYTEST_DESELECT+=(
|
||||
'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]'
|
||||
'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]'
|
||||
'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]'
|
||||
'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]'
|
||||
f2py/tests/test_kind.py::TestKind::test_int
|
||||
)
|
||||
fi
|
||||
|
||||
case "${ABI}" in
|
||||
alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86)
|
||||
EPYTEST_DESELECT+=(
|
||||
# too large for 32-bit platforms
|
||||
core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
|
||||
'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]'
|
||||
'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
|
||||
)
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -rf numpy || die
|
||||
epytest -n "$(makeopts_jobs)" --pyargs numpy
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( LICENSE.txt README.md THANKS.txt )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user