re-add numpy-1.23.2 (from main)
This commit is contained in:
parent
bb70ca7d52
commit
f797a5d805
|
@ -538,12 +538,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
|||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1934 Ebuilds in total, 1927 of them have in total 1939 (35 different) licenses assigned.
|
||||
There are 1935 Ebuilds in total, 1928 of them have in total 1940 (35 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1168|
|
||||
|Apache-2.0|363|
|
||||
|Apache-2.0|364|
|
||||
|GPL-3|120|
|
||||
|BSD|106|
|
||||
|LGPL-3|30|
|
||||
|
|
|
@ -2,14 +2,15 @@ AUX numpy-1.21.0-no-hardcode-blasv2.patch 2839 BLAKE2B fcb8c6d538b00a1a5796ac58b
|
|||
AUX numpy-1.21.3-unaligned-array.patch 1787 BLAKE2B cbc8e231e04582965d5ce60d285ec3e9c23a685b6c78f65e2d32e6b1a9e838653ae1d3f1ad5bf602159d1a63d5ee2347153df11d5aeeade6bbe2a39dd71c1388 SHA512 e0f410838a88c7c6892c972b8084ea5153453e90bd65922fb83772fca8052798173c9b450a1384032c39e9a82e91572cef39e4dc006d44def125debb404d0fd6
|
||||
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
|
||||
DIST numpy-1.21.4.zip 10646392 BLAKE2B 6e2953c6ca8e35c99f5de5faaacfb2b76b351a5c9521ba27449fcdeca5614978ff7d71fc52ce3787d1c7506c4e8eb81b1a92d3bf6825de1cb1d304ea4de83820 SHA512 85575a009bf40a8e5acaaa949d2669545968825df34273e367c42af36fa882ebb0830ff7953b5617d34d3061b3877238524937c42470fac9464479dc33ae60ce
|
||||
DIST numpy-1.21.6.zip 10274544 BLAKE2B 943978ffe34172d6081b0f2186c0af9069fb60b13f2e9e412cb1421abedaf3a75c3b37479cb41c09970f785eb38835a01b09d6ff26815da223dbb23474489508 SHA512 32f3f0fd317f2a886880ab21cefcf8d185dee75fb7ccd01967a1886456f664bbd984134bbcfe5042bf245372fa519565bf495d74c382c517ed8a7dbab8d05d61
|
||||
DIST numpy-html-1.21.4.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc
|
||||
DIST numpy-html-1.21.6.zip 24270531 BLAKE2B 8a7a531afa559aebeb7a7b7ef94b2248df60a60fdfc190ca002dda625003df8b432fed393d6dd0c0c00fafbeb5064a61e3d99bba1a6c41e1e6e34ce091a43c89 SHA512 a165b95729a13806a03464cf39c20a0e18cfcf7701f05cd7777cd115bfaf0972f7155d201c7bd8d4177c5761f8800c982b3e3c29729a5e9ed356059842a44dcc
|
||||
DIST numpy-ref-1.21.4.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f
|
||||
DIST numpy-ref-1.21.6.pdf 7326979 BLAKE2B 3c1130a576c46e0705ca1f12e7a3345beb1acdd23de2a81448e4e9755636dec313e277a0d3167dc3b211332b3fc415ac0d96e7c99e859b51a16a589426814182 SHA512 5dd37ca03f1f098fffce80aa6a1a6eb8ec66df4322da1c620bd1f507e89ee2ceb222de32c9b7974f085ddf146f0a789ea8eb27d792a13c1aa8a893c00f94f75f
|
||||
DIST numpy-user-1.21.4.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace
|
||||
DIST numpy-user-1.21.6.pdf 5142404 BLAKE2B d670f1eb0f060599a640c52bdeba53b1758007fc2090a5b8fb6e135e71114149a0085811e4bc21396eabb1123ffb9edd39f8192d0165ab42dd066a9747eb3a3f SHA512 dde264abff1787efd50e913b6facf83522b3344ed88fd15d6fe73ecd44c6a3db1e4ce4251c9674bbcb122f72ab86c64142b2f4f992a6449405041f8e1f5f1ace
|
||||
EBUILD numpy-1.21.4-r2.ebuild 4302 BLAKE2B 95bde04b1e6623140ca3484628dc0bd1643f8b4175473bf580011340b91a8ef4b02a2d9916c9715a1757339489686576dbfc53ed04f7a2ed9fa00772f393d015 SHA512 2f232f6d419e3b548de84b315427f22bef2d70fbd4645f030082bd9af42f7801c150f832c0d7b82873941739c0919ee3c06beafc4f6548127d3b61bda3cdae8a
|
||||
EBUILD numpy-1.21.6.ebuild 4250 BLAKE2B 566a16851c2b64a2960c578dd462380573c861ce31aae4ae04f298caa7be278a1d81bb315ae45d6d616d9169ce8c83c4e8308e979149b069f7aee909ef114fa5 SHA512 73185b6fb426e2c0851796ec9487992dfc5655f7b2e862ee881e9af2b9e8121beab5b81f315c91faf287f8aa50215956f5ae9298c8a16e7ad0ba8f5fd675bc50
|
||||
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 703eb4a500639629b7fa6f7de47d1bf3e4a1e884aa244c13b0b1210b257cdbb633ce9ad8e27ce8134b9640e986ec688343807d5cb36cd5f33cc16340346b93fc SHA512 be6ab5415d8c420df5272fa9bdac93e360a3518ba9e7135d90f1b0e93b9ccb48634ea09ae2ccdafb1846062270cb3084c6ac0bfa821ee06a81d11fc39ca019ea
|
||||
EBUILD numpy-1.23.2.ebuild 4743 BLAKE2B 67823edec46a5b5a05d4373a139f3d10f5013a99091dea703b0edd44eb16de4d51fc444f51a75c581f235743ba68303f02eaede33584680a230b6848810b5031 SHA512 74d6a4314e1185aeb30ad39da7f4198afaa619eda43fd88adf6c84b62f6bfaad2786cb56a4c4db4b21b9642dd3eccb1d607751eaf8195aa2615b01b11dcc2745
|
||||
MISC metadata.xml 461 BLAKE2B 8832954e31cde79a9535602fb4c7abdf6ec38271c3c5823d2018be1a14fc4b4d5cbe7dac755979b10e76ac8a7579debf1518646d3a55182979893af71bfa5171 SHA512 f687204c86bee2daec69b88f6d2508ecb92ba494d728a19c209d440b5168c52d4a5ce8707b96b8688d6560d7268c23a4ba19dc33477395fd41f7e63ab3ad3653
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
Originally added in: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/numpy/files?id=e5ce90a04e79f6413604e96e4803cb95ada7c859
|
||||
https://bugs.gentoo.org/567938
|
||||
--- a/numpy/distutils/system_info.py
|
||||
+++ b/numpy/distutils/system_info.py
|
||||
@@ -505,33 +505,7 @@ def get_info(name, notfound_action=0):
|
||||
'blas_armpl': blas_armpl_info,
|
||||
'lapack_armpl': lapack_armpl_info,
|
||||
'fftw3_armpl': fftw3_armpl_info,
|
||||
- 'atlas': atlas_info, # use lapack_opt or blas_opt instead
|
||||
- 'atlas_threads': atlas_threads_info, # ditto
|
||||
- 'atlas_blas': atlas_blas_info,
|
||||
- 'atlas_blas_threads': atlas_blas_threads_info,
|
||||
- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead
|
||||
- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto
|
||||
- 'atlas_3_10': atlas_3_10_info, # use lapack_opt or blas_opt instead
|
||||
- 'atlas_3_10_threads': atlas_3_10_threads_info, # ditto
|
||||
- 'atlas_3_10_blas': atlas_3_10_blas_info,
|
||||
- 'atlas_3_10_blas_threads': atlas_3_10_blas_threads_info,
|
||||
- 'lapack_atlas_3_10': lapack_atlas_3_10_info, # use lapack_opt instead
|
||||
- 'lapack_atlas_3_10_threads': lapack_atlas_3_10_threads_info, # ditto
|
||||
- 'flame': flame_info, # use lapack_opt instead
|
||||
- 'mkl': mkl_info,
|
||||
- # openblas which may or may not have embedded lapack
|
||||
- 'openblas': openblas_info, # use blas_opt instead
|
||||
- # openblas with embedded lapack
|
||||
- 'openblas_lapack': openblas_lapack_info, # use blas_opt instead
|
||||
- 'openblas_clapack': openblas_clapack_info, # use blas_opt instead
|
||||
- 'blis': blis_info, # use blas_opt instead
|
||||
- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead
|
||||
- 'blas_mkl': blas_mkl_info, # use blas_opt instead
|
||||
'accelerate': accelerate_info, # use blas_opt instead
|
||||
- 'openblas64_': openblas64__info,
|
||||
- 'openblas64__lapack': openblas64__lapack_info,
|
||||
- 'openblas_ilp64': openblas_ilp64_info,
|
||||
- 'openblas_ilp64_lapack': openblas_ilp64_lapack_info,
|
||||
'x11': x11_info,
|
||||
'fft_opt': fft_opt_info,
|
||||
'fftw': fftw_info,
|
||||
@@ -951,10 +925,7 @@ class system_info:
|
||||
return [b for b in [a.strip() for a in libs.split(',')] if b]
|
||||
|
||||
def get_libraries(self, key='libraries'):
|
||||
- if hasattr(self, '_lib_names'):
|
||||
- return self.get_libs(key, default=self._lib_names)
|
||||
- else:
|
||||
- return self.get_libs(key, '')
|
||||
+ return self.get_libs(key, '')
|
||||
|
||||
def library_extensions(self):
|
||||
c = customized_ccompiler()
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
@ -11,18 +11,25 @@ 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/"
|
||||
HOMEPAGE="
|
||||
https://numpy.org/
|
||||
https://github.com/numpy/numpy/
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
SRC_URI="
|
||||
mirror://pypi/${PN:0:1}/${PN}/${P}.zip
|
||||
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="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="doc lapack"
|
||||
|
||||
RDEPEND="
|
||||
|
@ -33,9 +40,13 @@ RDEPEND="
|
|||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
|
||||
lapack? ( virtual/pkgconfig )
|
||||
>=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}]
|
||||
|
@ -44,8 +55,7 @@ BDEPEND="
|
|||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch
|
||||
"${FILESDIR}"/numpy-1.21.4-build-compiler-args-ceph.patch
|
||||
"${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
@ -58,6 +68,10 @@ src_unpack() {
|
|||
}
|
||||
|
||||
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)
|
||||
|
@ -98,12 +112,6 @@ python_prepare_all() {
|
|||
# don't version f2py, we will handle it.
|
||||
sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
|
||||
|
||||
# disable fuzzed tests
|
||||
find numpy/*/tests -name '*.py' -exec sed -i \
|
||||
-e 's:def \(.*_fuzz\):def _\1:' {} + || die
|
||||
# very memory- and disk-hungry
|
||||
sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
|
@ -114,32 +122,55 @@ python_compile() {
|
|||
}
|
||||
|
||||
python_test() {
|
||||
local deselect=(
|
||||
numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
|
||||
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
|
||||
deselect+=(
|
||||
EPYTEST_DESELECT+=(
|
||||
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
|
||||
)
|
||||
fi
|
||||
|
||||
if use x86 ; then
|
||||
deselect+=(
|
||||
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 ${deselect[@]/#/--deselect }
|
||||
epytest -k "not _fuzz"
|
||||
}
|
||||
|
||||
python_install() {
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
@ -11,18 +11,25 @@ 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/"
|
||||
HOMEPAGE="
|
||||
https://numpy.org/
|
||||
https://github.com/numpy/numpy/
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
SRC_URI="
|
||||
mirror://pypi/${PN:0:1}/${PN}/${P}.zip
|
||||
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="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="doc lapack"
|
||||
|
||||
RDEPEND="
|
||||
|
@ -33,9 +40,13 @@ RDEPEND="
|
|||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=dev-python/cython-0.29.24[${PYTHON_USEDEP}]
|
||||
lapack? ( virtual/pkgconfig )
|
||||
>=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}]
|
||||
|
@ -44,9 +55,7 @@ BDEPEND="
|
|||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/numpy-1.21.0-no-hardcode-blasv2.patch
|
||||
"${FILESDIR}"/numpy-1.21.4-build-compiler-args-ceph.patch
|
||||
"${FILESDIR}"/numpy-1.21.4-copy-python-3.9.patch
|
||||
"${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
@ -59,6 +68,10 @@ src_unpack() {
|
|||
}
|
||||
|
||||
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)
|
||||
|
@ -99,12 +112,6 @@ python_prepare_all() {
|
|||
# don't version f2py, we will handle it.
|
||||
sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
|
||||
|
||||
# disable fuzzed tests
|
||||
find numpy/*/tests -name '*.py' -exec sed -i \
|
||||
-e 's:def \(.*_fuzz\):def _\1:' {} + || die
|
||||
# very memory- and disk-hungry
|
||||
sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
|
@ -115,24 +122,42 @@ python_compile() {
|
|||
}
|
||||
|
||||
python_test() {
|
||||
local deselect=(
|
||||
numpy/typing/tests/test_typing.py::test_reveal[arrayterator.py]
|
||||
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
|
||||
deselect+=(
|
||||
EPYTEST_DESELECT+=(
|
||||
numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features
|
||||
)
|
||||
fi
|
||||
|
||||
if use x86 ; then
|
||||
deselect+=(
|
||||
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
|
||||
|
||||
|
@ -140,7 +165,7 @@ python_test() {
|
|||
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
|
||||
|
||||
cd "${TEST_DIR}/lib" || die
|
||||
epytest "${deselect[@]/#/--deselect }"
|
||||
epytest -k "not _fuzz"
|
||||
}
|
||||
|
||||
python_install() {
|
Loading…
Reference in New Issue