dev-python/numpy: add 1.23.2, drop 1.23.1
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
@@ -3,14 +3,9 @@ AUX numpy-1.21.3-unaligned-array.patch 1787 BLAKE2B cbc8e231e04582965d5ce60d285e
|
||||
AUX numpy-1.21.4-build-compiler-args-ceph.patch 2033 BLAKE2B 63aae1b73e41332d5179d822aeefd5da3289505e9d6f6d7755a34746af5506113fb81eaccc08f1582ac5820d6fb2a1d00ee4ba98ef482f4adc72c7288069c6d1 SHA512 ffad960980048603012c0d435013f0f3326a8ecd26eba8ad27c1287b3eb624733c53ddeb270108c1d26339fefc1cb8faaea233ec6e2ac7a072a023ddb12868d0
|
||||
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.1.tar.gz 10716841 BLAKE2B c8b17bc6f1626a32fd62ac3e952f6ee4a5886ba9ab9721be540831d3cdb19c4ea7cefcb422b12384fd4804d12f6f4b0d8f1e0110306e426a2b92d5f98acd62f7 SHA512 b34fb627e0e548bae3cf4555c4c71ab4a170ade86a9ff4011a5dfac6aba29e2e04b1151b9364cd1efff004efc1c04b3bab111facbcdc3297f8c38d7a09c83e17
|
||||
DIST numpy-1.23.2.tar.gz 10719306 BLAKE2B d9f41d34331a3b5690e0bd4eedf050c31e088e1d6b01af6fed7e2bacc281ba7587975c5fda690c8b8f392ddef1a2ab2b6a18f6098d55876485eae58d36f98212 SHA512 ac5ed21887d41c94d395bfee2bb5492453b375344e43a9944224dac2eb13c6ad7477aa7a626d032d27b1c610e269232998ecc77a327da887748e794bf28c3feb
|
||||
DIST numpy-html-1.23.1.zip 27964271 BLAKE2B 0aa26d7c39f2d6b119e404dfb9642967770881ee0d640157a9ed11d16f21cd43109bed3c08f89fda457ec470292d945e2bf8b2dab56e4b36192d5e8eb3757b44 SHA512 218a2e893816af767c7cedd1f2256e05f68e59491c29277c95de653a206aaff35c5fe3bc6afd6d6d5ea7957748ec565593eb30d004e36e94c894ea4a6884902a
|
||||
DIST numpy-html-1.23.2.zip 27964271 BLAKE2B 0aa26d7c39f2d6b119e404dfb9642967770881ee0d640157a9ed11d16f21cd43109bed3c08f89fda457ec470292d945e2bf8b2dab56e4b36192d5e8eb3757b44 SHA512 218a2e893816af767c7cedd1f2256e05f68e59491c29277c95de653a206aaff35c5fe3bc6afd6d6d5ea7957748ec565593eb30d004e36e94c894ea4a6884902a
|
||||
DIST numpy-ref-1.23.1.pdf 7715485 BLAKE2B 7fbb0ce29e86fc7cd4932a6a9f0221b579b6cae695231edfebf863e5b4c2920796d802ccf9ae3e05b331964ac7c4f51099578d91b6b7fb357c6de2110a5f7cba SHA512 6036c6a36f332b83f371c7530a6ba6f354b1334d667d2a52993a1e52aa9d94d524e216f768928a006c717ed4b4131879f6e491a294ecfd3a0d1b0f9f937a887a
|
||||
DIST numpy-ref-1.23.2.pdf 7715485 BLAKE2B 7fbb0ce29e86fc7cd4932a6a9f0221b579b6cae695231edfebf863e5b4c2920796d802ccf9ae3e05b331964ac7c4f51099578d91b6b7fb357c6de2110a5f7cba SHA512 6036c6a36f332b83f371c7530a6ba6f354b1334d667d2a52993a1e52aa9d94d524e216f768928a006c717ed4b4131879f6e491a294ecfd3a0d1b0f9f937a887a
|
||||
DIST numpy-user-1.23.1.pdf 4123384 BLAKE2B d4587c9f979e1ef4734768598d6e106f2b4b0c8222f901a6c4caf0920e41622201252c5bd172b16346e0357138b5ff27c59e56c851be5ae3b7712624bd9cc5b4 SHA512 58e1ab96d2cfbd96df205c86f0a1a09e204349f70d21df7f8481c21ded8b46f4b9ede3216d5cce6c2b9bfc0aacbecdfa198bdb2d4c258a0dd4acb6e3ba421f9c
|
||||
DIST numpy-user-1.23.2.pdf 4123384 BLAKE2B d4587c9f979e1ef4734768598d6e106f2b4b0c8222f901a6c4caf0920e41622201252c5bd172b16346e0357138b5ff27c59e56c851be5ae3b7712624bd9cc5b4 SHA512 58e1ab96d2cfbd96df205c86f0a1a09e204349f70d21df7f8481c21ded8b46f4b9ede3216d5cce6c2b9bfc0aacbecdfa198bdb2d4c258a0dd4acb6e3ba421f9c
|
||||
EBUILD numpy-1.23.1.ebuild 4912 BLAKE2B a51b91ecb0e5967ca4e2ca70777781735d1137a2c80ef9493e7f93e0ba12b59b9ca3621764e106248baff84c5e7c75085ff7e0f324a1977e3332f2a12d960f80 SHA512 27dfbbf16d9db376fb98bc2c8f714cead979fe781dd2a9e65f6d785fced89ffa47b85e8928f231b971d7ee78c6090a669e000eb9f090726aac6aa996d154d3c0
|
||||
EBUILD numpy-1.23.2.ebuild 4743 BLAKE2B c27a9d356bcb05a4899500fdd1195cc3f59723df978d2a6dbdd1130d712ad43bb21376603190cc2d226aa9f04d6a64f1c99e91082301bca87fd487c6a2283b41 SHA512 4531903e52e5888d2eab09c3e53b4701dfbf411c3ff6019078d277693a81f79e4be8a08f54f436e8990f192f5822c070e8389656092a6c9d60912365f71a5915
|
||||
EBUILD numpy-1.23.2.ebuild 4724 BLAKE2B f5118194f482ae5900895afc554763ccbbf723fd56d689cab2777ff35b8e67b80889f52cf4eb4b05a99bdfe92e10ca3cd0681c5b71e9a50511608f208ea4a592 SHA512 25e6ca530575fcf59ed05c70a367192934fd8c2655a8464406e6f08e8128d349603652e6fa9e6f4298e346fc3c937aaaf738fb54be63b149fc9ec9f9fe9d5bfd
|
||||
MISC metadata.xml 514 BLAKE2B 73e70ba81cbcab8b122dcad7049b1aeb4b94ca85523404ed38371b6373d5805b3f320249fdecc91f00bceb3837e6c0259ab4d082699f8aa55e84c6c3d49505ea SHA512 959b1ffbd1f73984efa2efbfaf4e9a4419ca5f7a61e07a96d1589f6be09a1e286e91818504f5627bfc12655008815de2fa81cfb3f7b4702bb6eb70751f80ead0
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
||||
inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs
|
||||
|
||||
DOC_PV=${PV}
|
||||
# For when docs aren't ready yet, set to last version
|
||||
#DOC_PV=1.23.0
|
||||
DESCRIPTION="Fast array and numerical python library"
|
||||
HOMEPAGE="
|
||||
https://numpy.org/
|
||||
https://github.com/numpy/numpy/
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
SRC_URI="
|
||||
mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
doc? (
|
||||
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
|
||||
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
|
||||
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf
|
||||
)
|
||||
"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="doc lapack"
|
||||
|
||||
RDEPEND="
|
||||
lapack? (
|
||||
>=virtual/cblas-3.8
|
||||
>=virtual/lapack-3.8
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
>=dev-python/cython-0.29.30[${PYTHON_USEDEP}]
|
||||
lapack? (
|
||||
virtual/pkgconfig
|
||||
)
|
||||
doc? (
|
||||
app-arch/unzip
|
||||
)
|
||||
test? (
|
||||
>=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if use doc; then
|
||||
unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Allow use with setuptools 60.x
|
||||
# See numpy-1.22.1-revert-setuptools-upper-bound.patch for details
|
||||
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||
|
||||
if use lapack; then
|
||||
local incdir="${EPREFIX}"/usr/include
|
||||
local libdir="${EPREFIX}"/usr/$(get_libdir)
|
||||
cat >> site.cfg <<-EOF || die
|
||||
[blas]
|
||||
include_dirs = ${incdir}
|
||||
library_dirs = ${libdir}
|
||||
blas_libs = cblas,blas
|
||||
[lapack]
|
||||
library_dirs = ${libdir}
|
||||
lapack_libs = lapack
|
||||
EOF
|
||||
else
|
||||
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
|
||||
fi
|
||||
|
||||
export CC="$(tc-getCC) ${CFLAGS}"
|
||||
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573
|
||||
# with the subtle difference that we don't want to break Darwin where
|
||||
# -shared is not a valid linker argument
|
||||
if [[ ${CHOST} != *-darwin* ]]; then
|
||||
append-ldflags -shared
|
||||
fi
|
||||
|
||||
# only one fortran to link with:
|
||||
# linking with cblas and lapack library will force
|
||||
# autodetecting and linking to all available fortran compilers
|
||||
append-fflags -fPIC
|
||||
if use lapack; then
|
||||
NUMPY_FCONFIG="config_fc --noopt --noarch"
|
||||
# workaround bug 335908
|
||||
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
|
||||
fi
|
||||
|
||||
# don't version f2py, we will handle it.
|
||||
sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
export MAKEOPTS=-j1 #660754
|
||||
|
||||
distutils-r1_python_compile ${NUMPY_FCONFIG}
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# very disk- and memory-hungry
|
||||
numpy/lib/tests/test_io.py::test_large_zip
|
||||
|
||||
# precision problems
|
||||
numpy/core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
|
||||
|
||||
# runs the whole test suite recursively, that's just crazy
|
||||
numpy/core/tests/test_mem_policy.py::test_new_policy
|
||||
|
||||
# very slow, unlikely to be practically useful
|
||||
numpy/typing/tests/test_typing.py
|
||||
)
|
||||
|
||||
if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then
|
||||
# Degenerate case. arm32 chroot on arm64.
|
||||
# bug #774108
|
||||
EPYTEST_DESELECT+=(
|
||||
numpy/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
|
||||
numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow
|
||||
# https://github.com/numpy/numpy/issues/18387
|
||||
numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto
|
||||
# more precision problems
|
||||
numpy/core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16
|
||||
)
|
||||
fi
|
||||
if use arm || use x86 ; then
|
||||
EPYTEST_DESELECT+=(
|
||||
# too large for 32-bit platforms
|
||||
numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
|
||||
)
|
||||
fi
|
||||
|
||||
[[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
|
||||
# known problem
|
||||
'numpy/typing/tests/test_generic_alias.py::TestGenericAlias::test_pass[__dir__-<lambda>]'
|
||||
)
|
||||
|
||||
distutils_install_for_testing --single-version-externally-managed \
|
||||
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
|
||||
|
||||
cd "${TEST_DIR}/lib" || die
|
||||
epytest -k "not _fuzz"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
# https://github.com/numpy/numpy/issues/16005
|
||||
local mydistutilsargs=( build_src )
|
||||
distutils-r1_python_install ${NUMPY_FCONFIG}
|
||||
python_optimize
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( LICENSE.txt README.md THANKS.txt )
|
||||
|
||||
if use doc; then
|
||||
local HTML_DOCS=( "${WORKDIR}"/html/. )
|
||||
DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,14 +1,13 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
||||
inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs
|
||||
inherit distutils-r1 flag-o-matic fortran-2 toolchain-funcs pypi
|
||||
|
||||
DOC_PV=${PV}
|
||||
# For when docs aren't ready yet, set to last version
|
||||
@@ -20,7 +19,7 @@ HOMEPAGE="
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
SRC_URI="
|
||||
mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
$(pypi_sdist_url)
|
||||
doc? (
|
||||
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
|
||||
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
|
||||
|
||||
Reference in New Issue
Block a user