diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-06 04:27:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-06 04:27:04 +0100 |
commit | d6106fb0c1ab8f79024ab6a9ac2062ddc85d4e07 (patch) | |
tree | f3a4ad4dcf443e9351fa5dec88afeeec86c9b642 /dev-python/numpy | |
parent | f3f72d0d5f1ae9ee74acaa63ccb7a247468e73bf (diff) |
gentoo auto-resync : 06:10:2024 - 04:27:04
Diffstat (limited to 'dev-python/numpy')
-rw-r--r-- | dev-python/numpy/Manifest | 4 | ||||
-rw-r--r-- | dev-python/numpy/numpy-2.1.1.ebuild | 2 | ||||
-rw-r--r-- | dev-python/numpy/numpy-2.1.2.ebuild | 144 |
3 files changed, 148 insertions, 2 deletions
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest index afe1a4b05fc7..dcbcf7e94ddb 100644 --- a/dev-python/numpy/Manifest +++ b/dev-python/numpy/Manifest @@ -2,8 +2,10 @@ DIST numpy-1.26.4.tar.gz 15786129 BLAKE2B ee759d3a857111bc494d5e989a7b005375d942 DIST numpy-2.0.0.tar.gz 18326228 BLAKE2B e3d1084b79e0e55cd9087bb34dc116e6c9d6ab14a416a07f727b9f5d5a9db236ecf74a53b7e758d078781c5e565e5557912962f2ddbfff7251ec5b231fabe01d SHA512 cd5612ce2db4be87afa8479c508c256c9ff7f1b15a6b010eb06ba962759cc26552b512ec82711680bab1ebedeb06dfc8d7bff9cec63c94efacaadd719448b287 DIST numpy-2.0.2.tar.gz 18902015 BLAKE2B 63f993e3429bff1dac1ff79fad23a36a2493fd2c8a825ef96b6b87d82b0e68393d2829c5ecd9065df345c8bfbb1f8f385077f154264f7d2810d311d1d6672bd7 SHA512 d769fd4f07e082fae1661c6856d6d726e189f6931f3028c6819f9806aa9dfd15ab2b49c48b94bfd925eb3f74fddb6f044c9ba93bbb785b5476440dd1cf0b4999 DIST numpy-2.1.1.tar.gz 18874860 BLAKE2B c828f2106e32429831aa8c64b3b94dfda1b097bcb7f3475b33306bed0b03c2aeb0af4e43ea47c6b3d5e6387b37e3f9ecdf6ae2a3fd4f526da5d121931b9521f1 SHA512 94843f88a32cc1df3e572ac13f294e49201a1f50fbd28707a500839cdff61958823c5b8748a7a54cd866a1acc9bd11efde53042141a81cca44393ee7cee78cdc +DIST numpy-2.1.2.tar.gz 18878063 BLAKE2B b976b72bb113fc9c5e5a17c9d89038b6a11f2a09521ef46a610dd1fd04b0b11f08491728b2397ca5e3e9613aab3ad8c63b2b15a6378c535cf0e735226d517617 SHA512 3d69f6583e093e8fd0f441ec7dc4658c88fb714bb29574cd9510091ba059553f79c52492037353caf50b6cff1f7bd1e2501e445c7adde41bd9e08bab363e06e9 EBUILD numpy-1.26.4.ebuild 5085 BLAKE2B caa67f93894764546baf4f5864a5a2de86649c0c49743b829fb0eeb05e271e30f0d03c4e5d9862f5f8b5ae6bbdd8d8a642a46093cab8c146a820333e54e616d9 SHA512 b4dabd61cd4ba801b3aaf49419e322094f142aa90d24b2d8065eb34810aff2955ddaf00bad39e9ebc1c75a3b07f3002549649bf3d0af8556b2cda10d3c92b065 EBUILD numpy-2.0.0.ebuild 3290 BLAKE2B 793eaafe08f85df96a3909f16ef3390de127d4d402a2e4076a9b1450c20b6f0d3c9c8c36e34e76407d9d68eab3607c7de3845b673259b24c9fab9e405e9590e6 SHA512 2d07c83fdd80ed2113dea9f44a7a064683b975eb704964c141c39a41864345fe23f647a5ddc7a68d41a9e14e739ca24f40b7d6db0914bffd2922526a2908c79d EBUILD numpy-2.0.2.ebuild 3294 BLAKE2B 86fea7250c55d306b0cfdaa96d45fce84f6fd57e5f8a3ba8d5b887329b09cb7056b1fa792a76b68e617eb041278cb32906073e6334d29cd0a460dae786fd6c48 SHA512 5d9edd451edf15832b131436c5bbcf4e69c0e0f4c48d964414380644f977f2501246c9c400b07f4f95ae3b174673b31da60f72002d3c72f7a9fc79b8e69221e9 -EBUILD numpy-2.1.1.ebuild 3783 BLAKE2B be92bf80ae67acd08568798331cbe63c6b0ea5d8e3e99d8fb7082739b26122b52708659d74cde76c63396904ec5518ebbe943d54553112db7990c76cf33b0e1b SHA512 2870c1033d7a8255aa5cc47ef5d399bf89fb2e9d59f0926c5a7b96a559a8008f4b356b5ccb3a749eaaced7d85252e34fa99058c6ec5bc8cbfc6b92c060c3a423 +EBUILD numpy-2.1.1.ebuild 3782 BLAKE2B 42bab402c12d477e881542f6dcf81e3cffa8352a95903ca0ae9ce4dd862a70fc754ace7ed8edca65896efbf32d4d0f7de5e64d61694fd2325c2ae86128dd2288 SHA512 24b334b24fba57dfe2beb794dbea4bacf31ed2d4e39e994873ec3cf16568909a80dbb3a8df2cebe25cedef93c8679b8eab9b04ff80c6afc90f45acad5321c2b5 +EBUILD numpy-2.1.2.ebuild 3783 BLAKE2B be92bf80ae67acd08568798331cbe63c6b0ea5d8e3e99d8fb7082739b26122b52708659d74cde76c63396904ec5518ebbe943d54553112db7990c76cf33b0e1b SHA512 2870c1033d7a8255aa5cc47ef5d399bf89fb2e9d59f0926c5a7b96a559a8008f4b356b5ccb3a749eaaced7d85252e34fa99058c6ec5bc8cbfc6b92c060c3a423 MISC metadata.xml 932 BLAKE2B 7a4af31f613bab05ff542da48bf6ff1484d9df2459f559516e71329451dd739d3df0fead507c8033d94ab9ed516b68efe7f21819a8cd6ca303643d8c8bc34e86 SHA512 32cb8c1ab61521a02cbec38f6ea383f074e50d46aa3462ddcb85710f9d348e8e628cf2a5725e3cd921cc32f02885a1b5f02125639f0ec885384eeeff7f468a06 diff --git a/dev-python/numpy/numpy-2.1.1.ebuild b/dev-python/numpy/numpy-2.1.1.ebuild index 1cab76b3b2db..c90d9636868d 100644 --- a/dev-python/numpy/numpy-2.1.1.ebuild +++ b/dev-python/numpy/numpy-2.1.1.ebuild @@ -20,7 +20,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0/2" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" # +lapack because the internal fallbacks are pretty slow. Building without blas # is barely supported anyway, see bug #914358. IUSE="+lapack" diff --git a/dev-python/numpy/numpy-2.1.2.ebuild b/dev-python/numpy/numpy-2.1.2.ebuild new file mode 100644 index 000000000000..1cab76b3b2db --- /dev/null +++ b/dev-python/numpy/numpy-2.1.2.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2024 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..13} pypy3 ) +PYTHON_REQ_USE="threads(+)" +FORTRAN_NEEDED=lapack + +inherit distutils-r1 flag-o-matic fortran-2 pypi + +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/2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +# +lapack because the internal fallbacks are pretty slow. Building without blas +# is barely supported anyway, see bug #914358. +IUSE="+lapack" + +RDEPEND=" + lapack? ( + >=virtual/cblas-3.8 + >=virtual/lapack-3.8 + ) +" +BDEPEND=" + ${RDEPEND} + >=dev-build/meson-1.1.0 + >=dev-python/cython-3.0.6[${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/pytz-2019.3[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # bug #922457 + filter-lto + # https://github.com/numpy/numpy/issues/25004 + 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 + numpy/lib/tests/test_io.py::TestSaveTxt::test_large_zip + numpy/lib/tests/test_io.py::TestSavezLoad::test_closing_fid + numpy/lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load + + # 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 + + numpy/typing/tests/test_typing.py + # Uses huge amount of memory + numpy/core/tests/test_mem_overlap.py + 'numpy/core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + ) + + if [[ $(uname -m) == armv8l ]]; then + # Degenerate case of arm32 chroot on arm64, bug #774108 + EPYTEST_DESELECT+=( + numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + numpy/_core/tests/test_nditer.py::test_iter_refcount + numpy/_core/tests/test_limited_api.py::test_limited_api + numpy/f2py/tests/test_f2py2e.py::test_gh22819_cli + ) + ;& + python3.12) + EPYTEST_DESELECT+=( + # flaky + numpy/f2py/tests/test_crackfortran.py + numpy/f2py/tests/test_data.py::TestData::test_crackedlines + numpy/f2py/tests/test_data.py::TestDataF77::test_crackedlines + numpy/f2py/tests/test_f2py2e.py::test_gen_pyf + ) + ;; + esac + + if ! has_version -b "~${CATEGORY}/${P}[${PYTHON_USEDEP}]" ; then + # depends on importing numpy.random from system namespace + EPYTEST_DESELECT+=( + 'numpy/random/tests/test_extending.py::test_cython' + ) + fi + + if has_version ">=dev-python/setuptools-74[${PYTHON_USEDEP}]"; then + # msvccompiler removal + EPYTEST_DESELECT+=( + numpy/tests/test_public_api.py::test_all_modules_are_expected_2 + numpy/tests/test_public_api.py::test_api_importable + ) + EPYTEST_IGNORE+=( + numpy/distutils/tests/test_mingw32ccompiler.py + numpy/distutils/tests/test_system_info.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + epytest +} + +python_install_all() { + local DOCS=( LICENSE.txt README.md THANKS.txt ) + distutils-r1_python_install_all +} |