diff options
Diffstat (limited to 'dev-python/numpy')
17 files changed, 2 insertions, 2105 deletions
diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest index 4c5274e48ba4..46d147b57c29 100644 --- a/dev-python/numpy/Manifest +++ b/dev-python/numpy/Manifest @@ -1,27 +1,6 @@ -AUX numpy-1.22.0-no-hardcode-blasv2.patch 2710 BLAKE2B 71da07805e25acc58120da2b8d8692ec5893040eee3c2842620e2a9186062936082f34610d3056c44e44a921116f99158dfb7481c4eccc82d33b3b18a63b379e SHA512 87bcecee3435dedcd87128c81d0002a786b4b23928973216f32c8d12b797d6a9948c3e7b41142235abe35734683e6ef84c02ffe255ba492a0ad43626071dc5a9 -AUX numpy-1.24.3-fix-c++-linkage.patch 993 BLAKE2B 9ad31b995b209ea0674ee144a72dfa6b6bf5e10e3676a8c3dda9327ff9befed5cbdcfc0819a9053e1d281862ea8df40514e8e0fc05fee8c4a743faf8f56f5e72 SHA512 29a1e287f04a68785284005d8d2ee56e26f5180e42bc4a7ba0dc06f5523c91447a5a749bd4492ecf7ba5c916f80f03e619429f75ae3636cef24c4f11f29a6d23 -AUX numpy-1.25.0-skip-python3.12-irrelevant-tests.patch 7363 BLAKE2B ca4581f61fb1350803915bcc8e3198bd13c75e0c7e178c86e72682222cbafff396f23afad9d7427d9d2a4be625f84626c899493045a0b8cc7ee3d031d36712c3 SHA512 cce36c856beb2254436f2753ed94b7a933d1e4c06fe0a96c2be70d944f91bb13f3358f50981398d0b9169c0e01b64695c3adb797db15cb6b695488318e276886 -AUX numpy-1.25.0_rc1-meson-pyproject.toml.patch 16917 BLAKE2B 6cdda647c1c4f003adcaff3d634cbaa2f6c1624f2e44bfff1b6542189693a1dc99bf8a3da38d5e9a5dd2b3a6382d0430f03eb3c39811cf3b72e85a1bbae9ea0e SHA512 0a51b1c84356704f373ba1188dc63152e45fdb7bc71881e8ab08b67bfbf2e8f1e9b5544eedf6e3d8b4b872e294e28233e9f059dfdad42ff835bba22ee66d0d93 -AUX numpy-1.25.1-fix-scalartypes.patch 2745 BLAKE2B 97b80e877bf6d9036c0911b135869e2f3d0eab6828b4b1acdc957581d5a32063981b1aa688c46627cdb6f8be7fb839aadeb66012157e0f8f5e623e6d572441eb SHA512 144fd807dee3a844f8279cb7443ecd400862b257d36c42d6197c90514b8405c60466473436509983ed13ce9d23a137ef953ce21e3f4a2a2e16cb27a0fecb174a -AUX numpy-1.26.0_beta1-npy_cast_info.patch 1783 BLAKE2B 2ac4c46a9a522b85796d9607b51806f13d529eeaf63bc04b7b5d1ad77c0743718933d0ac160e719900349f5a793be9c2f85b70ef82f9adb0c4c71300b27bc83b SHA512 cbf4556c608bd2f444233dc0622c4213cbf7b3b940ced45e2a418a3c0f5cc86c4d6f82e474c3527fad6fcd721d872b82fa24a6aa4c29e6bb4fb8660c881a7790 -AUX replace_cpuflags.awk 405 BLAKE2B 1ac5f362a174793274a2e63fad73a7cf260b1fb139c479279c8cad7f400a376712b17312ee41defb785a7a2c84ec8e679aae48b41e88394a816f12f1cd366e56 SHA512 cce2253e00e2e56f3038782ff989703a9ef3d5f97d1b1f2570f6e23396d7abb7cff7f34588b67ec6c395cb192d7e3bfa6a8262ddf45193a2d0c91c2063efcf6d -DIST numpy-1.24.0.tar.gz 10897101 BLAKE2B 59e2b913f90de76589d8fbb2f07e2d389012c7f6ce9bd641bc4837776465ce9c41c34f19f92bee55d4bae6245c1d2c84315b359ef0b089fd68d31cd7e7ec44b1 SHA512 3b4e6255b8d39e8504a50ecd3c2ba09d5b16d3f6c70b23b67e4dbf03d1fe390c55030f46090341d39a1ee8228c61ad6212fdc6e4579fcec9e26b4dbe70268661 -DIST numpy-1.24.2.tar.gz 10906862 BLAKE2B e48f65eab709f0c57ec378d813a7b65bcaca6d5960b559d6db1c60726e5cf12517f4b2e1636b0ff815a2109925edccba200270db5170fd0aff5fd635919165ac SHA512 145fd7fb3919a185f75076d51b92c54a7fb1b776b637752ca15fdee15b239d6a517ef1bb8cded7c92e059cf6cda0146c24943c042d19b791e81125bc0ad4b820 -DIST numpy-1.24.4.tar.gz 10911229 BLAKE2B 2f054b4ede249653707c3df8ccf6df31b747c0625891ae6e01134f84b02d1300e1d7a88b5741e0e0f05218673d95374f263e5bfddbf17c9510aa93bac002eafc SHA512 89eb90548ad4f38cfe0a5077eef426058eed08ca17633024887e4d0ff5bdfe98736b1ad6850fe643bc0035d55ac4cd39b5971895eea9dcf247b5ff186654ed68 -DIST numpy-1.25.1.tar.gz 10428993 BLAKE2B ee3edaf5416ac858b995f0cb8df75962af01619969a2c70fa10b4e0d0a1c96a3b441ee470a463cdb7c60910d8823af1c41d37933f87bcaa0a724655d052ed20a SHA512 69cc5426f657a21a6a1fb3bb043b8acec90b87969f90177abb6d7294ca96d04f723ddf90fa40822704b16147a390abafbcda9702e40405ea6b6e22377aade71d DIST numpy-1.25.2-patches.tar.xz 7212 BLAKE2B 718331b2d9f8380df239bf2ad9c24d79924e08797825d7c8655124a55e059790f96641633cdb42c597646764ca9efcaf277d5f5b75f042f533c28f2a81d5a5a8 SHA512 bcc0c55710b8d874e1dd9a57fad5698e09e3c96254922db32a8beeae9a5a54532cb0660d3ce43ca68e70fa7227bca9e0d12a0298aa6972ad2cbcecfe4aee3e85 DIST numpy-1.25.2.tar.gz 10805282 BLAKE2B f138eaf237f3e8052cafbe9fc98b4b62fb0748079df8599fc0950624c856294157410a2ec6fe381eaa8386b1530a39f7037ae1887c9fcfe2e77a3d7ad1ca0171 SHA512 6846d558c227329b6e700965ffa4c7886a7ca5f35234a56d734bc8201d19f7ac87d8ea081094bca13685130dce7bfb98ee4aa3a9dbd538288f10f1d9d82fb699 DIST numpy-1.26.0.tar.gz 15633455 BLAKE2B 9cd8693d1303bc9ac6d95a6cd57440839adbd648efae7052cf9b73f833eb8ebb2a0ad09fcc638e51b481b4c049a02304eeef34a7566609ae2cbab3278d033a97 SHA512 0d500c623b274a219740c78ae2febb32a2f167016a9ff529678526e6b3e89a5b732c41defa23460a5da6f7f89d4a7d827f44fa9a1334c78e204b00ce164fb40c -DIST numpy-1.26.0b1.tar.gz 15632046 BLAKE2B 72991e0a1a9b63ac9a3014b78348aa0bc512c2e22c3959d5466f92e2df8649aea56dd949e8954921fc29302f84e38748665597319fa9baa8154a85b34527e12f SHA512 c099a61ad58e142b29eac891b746c93425a337912df8da5e5a6b36c53f9069f56dd7ee0807b1773eca23a7e39b355e6c13d419cbdd36d35c2ab0a77cb14bb5b5 -DIST numpy-1.26.0rc1.tar.gz 15634820 BLAKE2B db9d9d6288681c1a49d612599c206c6f0964010222f24e0507e500cdb34a504b07202b561d14cd7b06c587668b2ad46c8bb72ecfe0e64a86cd3bbb498c9c2b5a SHA512 1c0e3009d2a45b0cf65aa95e317510a200e7cf9a5b985bed428ad1d65180b6df37cc3a597039335c5147cad23770e56e0bfef8ebb920b7e62c4b75664189a234 -EBUILD numpy-1.24.0.ebuild 4196 BLAKE2B a7359b00b007339381f458502457b2d2f9f07daf4f9affa239944de9ef3afef4318d063d7a934da394707d3ba5d53b043f68bb59f903ded5847122f0fce35567 SHA512 90500a1ee3a0a5a9ebd741dd9c870e6d57ec27e5da7dc4fc4dcac46f59212cabd777f806110180c11a55c4ffccbfdcaf0d0b5d1598beb5359779b6d6ba6a1c00 -EBUILD numpy-1.24.2.ebuild 4366 BLAKE2B a7a396b29efaf6a07bd68f76e0cae0d069f530a4d4d915b89cf5a47a42a4e9cf29215089f0a8f819fd24961280fe83f103f28b6be90758eb78f3f408ab5eb23b SHA512 b1186214bf08642b6ca267d0a84ec03c8f4b6256e728eb17d789eb34a43760bf87ea18696ef30b12494bff23a3b8b6f1980085c900c5341c8d43b8da468549f5 -EBUILD numpy-1.24.4-r1.ebuild 5214 BLAKE2B 87986c0f034dcdbeffcb51ca3c90546b16fd1ded2a43744f29ca0210a2b496b8e85e6bd8dfd229b72c496d7cdbb0cfbf4d4ceb81a290786ac55fdb1bcfd18cea SHA512 5932b2c7f0ca7cb5774b9fba9282579384b563bacef63bbf84f69e15c5b86ba72f058660fd44f8a46fdc7088dca8646ff264378da69de017044bd2aaf0e642b9 -EBUILD numpy-1.24.4.ebuild 4625 BLAKE2B c0fdf22a1accd3649917ea62e5d0f3d727c2225341ac9955bc581428e8d49df2d9d3a026626ebb88d0a099b2e10863b3c1e1173c03298a4d7ab74c38b0eb63d2 SHA512 a60ffab9872388691c79cce9478ee95a56e355498ea93d80cf6a0e07f1f46f4f6eaa1c5a33a447739d1b2000240c08da74376e924140b6eeac49695edf699704 -EBUILD numpy-1.25.1-r3.ebuild 4444 BLAKE2B bc98460d27c6acd233ed219af855f93da93e6dd43db721195fd7e318256509145907136a1336f5d21c7252d05330eaf6b8f83f3f2bd4e4915d92ff447c57b564 SHA512 8dd4d5a3367d1260aa242558048d02da616695aa54f4b666b494d24aac7bef306bf7467fb73e6a7138f67086af51d3d191830a47c14b73062bf0836c345f4397 -EBUILD numpy-1.25.2.ebuild 4985 BLAKE2B e1198966b4a4089d9d186e43642583584ec9b1b940bb95645f6e9af0157426dc7ee32b8e12539577e4b83b3ed75843fce390f43460d172fe5c0aadf72bf05075 SHA512 32eb023e960217fe71be663ee0f62952eb9c7c36b8779e53007c848dda5b42823faad8066e3127458ce854d1000c8db244348a570a19e297ea32ec68015bcb03 +EBUILD numpy-1.25.2.ebuild 4983 BLAKE2B bbd49b1e59069f89376c22aee74e89a304bef19b652340dfd998a7bd1dcf24630039c9b217ca8ef16a079a7829b4e8118cb58623e82af0a277cbae4ebcb92f16 SHA512 051afd8214186fe20fe2a66b3998251ea1bd17f4603314b392c4fa6956c0e7aee127c1476ef38da6a41ae8f45406f6462638b2714c37d5d7c1a7fd0749da6743 EBUILD numpy-1.26.0.ebuild 4288 BLAKE2B 4e105da37d6ac0e318fa1b35572fe063dbe3737be4e01b6a3d15b2458e345b21472967ea1b98f100dea1f72e7ae9e47a4995705148cb3983219fa7d13dc8478f SHA512 502f5c289d0eec41de0dafe5fa37ce6e6678b2a870e706955b108dd304852d20e0ff866e200f0d40ab8edfec6aff5629e1aa60830a0b4222022725b7d0483520 -EBUILD numpy-1.26.0_beta1-r1.ebuild 4224 BLAKE2B 90904364e576538fdb9e0b1818fbe523968eb92d94a670578e3a6ce2caef497f18d4f22abd5bfd437045a662e69a88cd5406efeb6f624607f227906975a55b38 SHA512 8f7966d86f514cf054798d2f7713dde10d3cdcac56fcb1553821793b1f08a4d898463808bceb6db963a104a22ad6a98af096f2f3ea66c9f17339b6023ee383f4 -EBUILD numpy-1.26.0_beta1.ebuild 4116 BLAKE2B 2e5c723691678ce26459c9e4bacb8530f7694a7fab2255fb8c828cf8f1772e2bc26a98d3c2b6ceab535d8d80f9224f4b4b081d2a223aa82d01e6436589fde14e SHA512 d42ec9bcaeefb4b02ab7cae81e9d817bb418ab36252eb44cb327860a1982cf06dbd2132932fb1030f46c2eddc94f95717fdf6c87d19d93591bcce3234d7dd8e6 -EBUILD numpy-1.26.0_rc1.ebuild 4116 BLAKE2B 2e5c723691678ce26459c9e4bacb8530f7694a7fab2255fb8c828cf8f1772e2bc26a98d3c2b6ceab535d8d80f9224f4b4b081d2a223aa82d01e6436589fde14e SHA512 d42ec9bcaeefb4b02ab7cae81e9d817bb418ab36252eb44cb327860a1982cf06dbd2132932fb1030f46c2eddc94f95717fdf6c87d19d93591bcce3234d7dd8e6 MISC metadata.xml 932 BLAKE2B 7a4af31f613bab05ff542da48bf6ff1484d9df2459f559516e71329451dd739d3df0fead507c8033d94ab9ed516b68efe7f21819a8cd6ca303643d8c8bc34e86 SHA512 32cb8c1ab61521a02cbec38f6ea383f074e50d46aa3462ddcb85710f9d348e8e628cf2a5725e3cd921cc32f02885a1b5f02125639f0ec885384eeeff7f468a06 diff --git a/dev-python/numpy/files/numpy-1.22.0-no-hardcode-blasv2.patch b/dev-python/numpy/files/numpy-1.22.0-no-hardcode-blasv2.patch deleted file mode 100644 index d87a16a4b6c9..000000000000 --- a/dev-python/numpy/files/numpy-1.22.0-no-hardcode-blasv2.patch +++ /dev/null @@ -1,50 +0,0 @@ -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() diff --git a/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch b/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch deleted file mode 100644 index ae7d5ba0ea49..000000000000 --- a/dev-python/numpy/files/numpy-1.24.3-fix-c++-linkage.patch +++ /dev/null @@ -1,25 +0,0 @@ -https://bugs.gentoo.org/893962 -https://github.com/numpy/numpy/issues/23122 -https://github.com/numpy/numpy/pull/23601 - -From 0a0240bcdad5daa0b84781719b3f8a002ef0f82b Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Sun, 16 Apr 2023 22:23:38 +0100 -Subject: [PATCH] BLD: use the C++ linker to link `_multiarray_umath.so` - -This gets rid of undefined symbol issues for `assert`. - -Closes gh-23122 -Closes gh-23595 ---- a/numpy/core/setup.py -+++ b/numpy/core/setup.py -@@ -1010,9 +1010,6 @@ def generate_umath_doc_header(ext, build_dir): - svml_objs.sort() - - config.add_extension('_multiarray_umath', -- # Forcing C language even though we have C++ sources. -- # It forces the C linker and don't link C++ runtime. -- language = 'c', - sources=multiarray_src + umath_src + - common_src + - [generate_config_h, diff --git a/dev-python/numpy/files/numpy-1.25.0-skip-python3.12-irrelevant-tests.patch b/dev-python/numpy/files/numpy-1.25.0-skip-python3.12-irrelevant-tests.patch deleted file mode 100644 index cd829c5ef08e..000000000000 --- a/dev-python/numpy/files/numpy-1.25.0-skip-python3.12-irrelevant-tests.patch +++ /dev/null @@ -1,187 +0,0 @@ -https://github.com/numpy/numpy/commit/515403f2c637cb58f8dc326d88dd6f768f027cf4 -https://github.com/numpy/numpy/commit/b0872b858e2e6ebc394e95c81a024dcf1573c690 -https://github.com/numpy/numpy/commit/e42fc93b54a6d41dab72d86921f96e5ebc4c4198 -https://github.com/numpy/numpy/commit/4552b6cb0083502f731794e961cd30b9b62ba2e3 - -From 515403f2c637cb58f8dc326d88dd6f768f027cf4 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Sun, 18 Jun 2023 15:56:23 +0200 -Subject: [PATCH] TST: disable `test_new_policy` test for memory allocator. - -This is way too slow, running a large part of the test suite twice. -Issue 23975 tracks changing how this feature is tested. ---- - numpy/core/tests/test_mem_policy.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/numpy/core/tests/test_mem_policy.py b/numpy/core/tests/test_mem_policy.py -index b4e2f65916c..0855d60771a 100644 ---- a/numpy/core/tests/test_mem_policy.py -+++ b/numpy/core/tests/test_mem_policy.py -@@ -359,7 +359,7 @@ def test_thread_locality(get_module): - assert np.core.multiarray.get_handler_name() == orig_policy_name - - --@pytest.mark.slow -+@pytest.mark.skip(reason="too slow, see gh-23975") - def test_new_policy(get_module): - a = np.arange(10) - orig_policy_name = np.core.multiarray.get_handler_name(a) - -From b0872b858e2e6ebc394e95c81a024dcf1573c690 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 19 Jun 2023 11:07:19 +0200 -Subject: [PATCH] TST: skip refcount related tests on py312 - -Python 3.12 has immortal refcounts; the initial and final -values will be the same when accessing `sys.getrefcount` inside a -test. - -Closes gh-23986 ---- a/numpy/core/tests/test_dtype.py -+++ b/numpy/core/tests/test_dtype.py -@@ -755,6 +755,11 @@ def iter_struct_object_dtypes(): - yield pytest.param(dt, p, 12, obj, id="<structured subarray 2>") - - -+@pytest.mark.skipif( -+ sys.version_info >= (3, 12), -+ reason="Python 3.12 has immortal refcounts, this test will no longer " -+ "work. See gh-23986" -+) - @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") - class TestStructuredObjectRefcounting: - """These tests cover various uses of complicated structured types which ---- a/numpy/core/tests/test_regression.py -+++ b/numpy/core/tests/test_regression.py -@@ -1465,6 +1465,10 @@ def test_structured_arrays_with_objects1(self): - x[x.nonzero()] = x.ravel()[:1] - assert_(x[0, 1] == x[0, 0]) - -+ @pytest.mark.skipif( -+ sys.version_info >= (3, 12), -+ reason="Python 3.12 has immortal refcounts, this test no longer works." -+ ) - @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") - def test_structured_arrays_with_objects2(self): - # Ticket #1299 second test - -From e42fc93b54a6d41dab72d86921f96e5ebc4c4198 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 19 Jun 2023 11:14:38 +0200 -Subject: [PATCH] TST: skip memory allocator and `array_interface` tests on - py312 - -They require numpy.distutils, which isn't available on >=3.12 -The `numpy.testing.extbuild` utility will need changing to make this -work again. Could either use plain `setuptools` or `meson`. ---- a/numpy/core/tests/test_array_interface.py -+++ b/numpy/core/tests/test_array_interface.py -@@ -128,6 +128,9 @@ def get_module(tmp_path): - more_init=more_init) - - -+# FIXME: numpy.testing.extbuild uses `numpy.distutils`, so this won't work on -+# Python 3.12 and up. -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - @pytest.mark.slow - def test_cstruct(get_module): - ---- a/numpy/core/tests/test_mem_policy.py -+++ b/numpy/core/tests/test_mem_policy.py -@@ -9,6 +9,11 @@ - import sys - - -+# FIXME: numpy.testing.extbuild uses `numpy.distutils`, so this won't work on -+# Python 3.12 and up. It's an internal test utility, so for now we just skip -+# these tests. -+ -+ - @pytest.fixture - def get_module(tmp_path): - """ Add a memory policy that returns a false pointer 64 bytes into the -@@ -213,6 +218,7 @@ def get_module(tmp_path): - more_init=more_init) - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_set_policy(get_module): - - get_handler_name = np.core.multiarray.get_handler_name -@@ -241,6 +247,7 @@ def test_set_policy(get_module): - assert get_handler_name() == orig_policy_name - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_default_policy_singleton(get_module): - get_handler_name = np.core.multiarray.get_handler_name - -@@ -262,6 +269,7 @@ def test_default_policy_singleton(get_module): - assert def_policy_1 is def_policy_2 is get_module.get_default_policy() - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_policy_propagation(get_module): - # The memory policy goes hand-in-hand with flags.owndata - -@@ -320,6 +328,7 @@ async def async_test_context_locality(get_module): - assert np.core.multiarray.get_handler_name() == orig_policy_name - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_context_locality(get_module): - if (sys.implementation.name == 'pypy' - and sys.pypy_version_info[:3] < (7, 3, 6)): -@@ -341,6 +350,7 @@ def concurrent_thread2(get_module, event): - get_module.set_secret_data_policy() - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_thread_locality(get_module): - orig_policy_name = np.core.multiarray.get_handler_name() - -@@ -359,6 +369,7 @@ def test_thread_locality(get_module): - assert np.core.multiarray.get_handler_name() == orig_policy_name - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - @pytest.mark.skip(reason="too slow, see gh-23975") - def test_new_policy(get_module): - a = np.arange(10) -@@ -388,6 +399,8 @@ def test_new_policy(get_module): - c = np.arange(10) - assert np.core.multiarray.get_handler_name(c) == orig_policy_name - -+ -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - @pytest.mark.xfail(sys.implementation.name == "pypy", - reason=("bad interaction between getenv and " - "os.environ inside pytest")) -@@ -420,6 +433,8 @@ def test_switch_owner(get_module, policy): - else: - os.environ['NUMPY_WARN_IF_NO_MEM_POLICY'] = oldval - -+ -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="no numpy.distutils") - def test_owner_is_base(get_module): - a = get_module.get_array_with_base() - with pytest.warns(UserWarning, match='warn_on_free'): - - -From 4552b6cb0083502f731794e961cd30b9b62ba2e3 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 19 Jun 2023 12:07:32 +0200 -Subject: [PATCH] TST: skip test using `np.load` on py2-saved .npy file on - py312 - ---- a/numpy/lib/tests/test_format.py -+++ b/numpy/lib/tests/test_format.py -@@ -527,6 +527,7 @@ def test_load_padded_dtype(tmpdir, dt): - assert_array_equal(arr, arr1) - - -+@pytest.mark.skipif(sys.version_info >= (3, 12), reason="see gh-23988") - @pytest.mark.xfail(IS_WASM, reason="Emscripten NODEFS has a buggy dup") - def test_python2_python3_interoperability(): - fname = 'win64python2.npy' diff --git a/dev-python/numpy/files/numpy-1.25.0_rc1-meson-pyproject.toml.patch b/dev-python/numpy/files/numpy-1.25.0_rc1-meson-pyproject.toml.patch deleted file mode 100644 index b42e6cec1c73..000000000000 --- a/dev-python/numpy/files/numpy-1.25.0_rc1-meson-pyproject.toml.patch +++ /dev/null @@ -1,392 +0,0 @@ -https://github.com/numpy/numpy/pull/23838 - -From 669c1a16f9e905b5b33017aa1a17cc59716ccfc7 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 29 May 2023 16:16:41 +0200 -Subject: [PATCH 01/11] BLD: default to using meson-python as build backend - ---- - pyproject.toml | 137 ++++++++++++++++----------------- - 3 files changed, 66 insertions(+), 77 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 759b538fb6e..9f03fa8d0e5 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,79 +1,72 @@ - [build-system] --# Uncomment this line, the `meson-python` requires line, and the [project] and --# [project.urls] tables below in order to build with Meson by default --#build-backend = "mesonpy" -+build-backend = "mesonpy" - requires = [ -- # setuptools, wheel and Cython are needed for the setup.py based build -- "setuptools==59.2.0", -- # `wheel` is needed for non-isolated builds, given that `meson-python` -- # doesn't list it as a runtime requirement (at least in 0.11.0) - it's -- # likely to be removed as a dependency in meson-python 0.12.0. -- "wheel==0.38.1", -- "Cython>=0.29.34,<3.0", --# "meson-python>=0.10.0", -+ "Cython>=0.29.34", -+ "meson-python>=0.13.1", - ] - --#[project] --#name = "numpy" --# --## Using https://peps.python.org/pep-0639/ --## which is still in draft --#license = {text = "BSD-3-Clause"} --## Note: needed for Meson, but setuptools errors on it. Uncomment once Meson is default. --##license-files.paths = [ --## "LICENSE.txt", --## "LICENSES_bundles.txt" --##] --# --#description = "Fundamental package for array computing in Python" --#authors = [{name = "Travis E. Oliphant et al."}] --#maintainers = [ --# {name = "NumPy Developers", email="numpy-discussion@python.org"}, --#] --#requires-python = ">=3.9" --#readme = "README.md" --#classifiers = [ --# 'Development Status :: 5 - Production/Stable', --# 'Intended Audience :: Science/Research', --# 'Intended Audience :: Developers', --# 'License :: OSI Approved :: BSD License', --# 'Programming Language :: C', --# 'Programming Language :: Python', --# 'Programming Language :: Python :: 3', --# 'Programming Language :: Python :: 3.9', --# 'Programming Language :: Python :: 3.10', --# 'Programming Language :: Python :: 3.11', --# 'Programming Language :: Python :: 3 :: Only', --# 'Programming Language :: Python :: Implementation :: CPython', --# 'Topic :: Software Development', --# 'Topic :: Scientific/Engineering', --# 'Typing :: Typed', --# 'Operating System :: Microsoft :: Windows', --# 'Operating System :: POSIX', --# 'Operating System :: Unix', --# 'Operating System :: MacOS', --#] --#dynamic = ["version", "scripts"] --# --#[project.scripts] --## Note: this is currently dynamic, see setup.py. Can we get rid of that? --## see commit f22a33b71 for rationale for dynamic behavior --#'f2py = numpy.f2py.f2py2e:main' --#'f2py3 = numpy.f2py.f2py2e:main' --#'f2py3.MINOR_VERSION = numpy.f2py.f2py2e:main' --# --# When enabling this stanza, make sure to remove the meson-specific xfail from --# numpy/tests/test_public_api.py --#[project.entry-points] --#'array_api': 'numpy = numpy.array_api' --#'pyinstaller40': 'hook-dirs = numpy:_pyinstaller_hooks_dir' --# --#[project.urls] --#homepage = "https://numpy.org" --#documentation = "https://numpy.org/doc/" --#source = "https://github.com/numpy/numpy" --#download = "https://pypi.org/project/numpy/#files" --#tracker = "https://github.com/numpy/numpy/issues" -+[project] -+name = "numpy" -+version = "2.0.0.dev0" -+ -+# Using https://peps.python.org/pep-0639/ which is still in draft -+license = {text = "BSD-3-Clause"} -+license-files.paths = [ -+ "LICENSE.txt", -+ "LICENSES_bundles.txt" -+] -+ -+description = "Fundamental package for array computing in Python" -+authors = [{name = "Travis E. Oliphant et al."}] -+maintainers = [ -+ {name = "NumPy Developers", email="numpy-discussion@python.org"}, -+] -+requires-python = ">=3.9" -+readme = "README.md" -+classifiers = [ -+ 'Development Status :: 5 - Production/Stable', -+ 'Intended Audience :: Science/Research', -+ 'Intended Audience :: Developers', -+ 'License :: OSI Approved :: BSD License', -+ 'Programming Language :: C', -+ 'Programming Language :: Python', -+ 'Programming Language :: Python :: 3', -+ 'Programming Language :: Python :: 3.9', -+ 'Programming Language :: Python :: 3.10', -+ 'Programming Language :: Python :: 3.11', -+ 'Programming Language :: Python :: 3.12', -+ 'Programming Language :: Python :: 3 :: Only', -+ 'Programming Language :: Python :: Implementation :: CPython', -+ 'Topic :: Software Development', -+ 'Topic :: Scientific/Engineering', -+ 'Typing :: Typed', -+ 'Operating System :: Microsoft :: Windows', -+ 'Operating System :: POSIX', -+ 'Operating System :: Unix', -+ 'Operating System :: MacOS', -+] -+#dynamic = ["scripts"] -+ -+[project.scripts] -+# TODO: this is currently dynamic for minor version support. See also the same -+# thing in setup.py. Can we get rid of that? see commit f22a33b71 for rationale -+# for dynamic behavior. -+f2py = 'numpy.f2py.f2py2e:main' -+f2py3 = 'numpy.f2py.f2py2e:main' -+#f2py3.MINOR_VERSION = 'numpy.f2py.f2py2e:main' -+ -+[project.entry-points.array_api] -+numpy = 'numpy.array_api' -+ -+[project.entry-points.pyinstaller40] -+hook-dirs = 'numpy:_pyinstaller_hooks_dir' -+ -+[project.urls] -+homepage = "https://numpy.org" -+documentation = "https://numpy.org/doc/" -+source = "https://github.com/numpy/numpy" -+download = "https://pypi.org/project/numpy/#files" -+tracker = "https://github.com/numpy/numpy/issues" - - [tool.towncrier] - # Do no set this since it is hard to import numpy inside the source directory - -From 02cae331443d6955dba8ce5e981c24a7b6c01ec6 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 29 May 2023 18:51:54 +0200 -Subject: [PATCH 04/11] BLD: fix bug with CMake fallback detection of - BLAS/LAPACK - ---- - numpy/meson.build | 11 +++++++---- - 1 file changed, 7 insertions(+), 4 deletions(-) - -diff --git a/numpy/meson.build b/numpy/meson.build -index 7b85d8e92f5..ad1829a78db 100644 ---- a/numpy/meson.build -+++ b/numpy/meson.build -@@ -198,10 +198,13 @@ foreach name, dep : dependency_map - if dep.found() - conf_data.set(name + '_VERSION', dep.version()) - conf_data.set(name + '_TYPE_NAME', dep.type_name()) -- conf_data.set(name + '_INCLUDEDIR', dep.get_variable('includedir')) -- conf_data.set(name + '_LIBDIR', dep.get_variable('libdir')) -- conf_data.set(name + '_OPENBLAS_CONFIG', dep.get_variable('openblas_config')) -- conf_data.set(name + '_PCFILEDIR', dep.get_variable('pcfiledir')) -+ if dep.type_name() == 'pkgconfig' -+ # CMake detection yields less info, so we need to leave it blank there -+ conf_data.set(name + '_INCLUDEDIR', dep.get_variable('includedir')) -+ conf_data.set(name + '_LIBDIR', dep.get_variable('libdir')) -+ conf_data.set(name + '_OPENBLAS_CONFIG', dep.get_variable('openblas_config')) -+ conf_data.set(name + '_PCFILEDIR', dep.get_variable('pcfiledir')) -+ endif - endif - endforeach - - -From 84bea46fab251edd31bee8d8eae174cf2cb9315b Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gommers@gmail.com> -Date: Mon, 29 May 2023 19:15:29 +0200 -Subject: [PATCH 06/11] CI: keep the Emscripten/Pyodide job on a setup.py-based - build - ---- - pyproject.toml.setuppy | 9 +++++++++ - 2 files changed, 14 insertions(+), 1 deletion(-) - create mode 100644 pyproject.toml.setuppy - -diff --git a/pyproject.toml.setuppy b/pyproject.toml.setuppy -new file mode 100644 -index 00000000000..b28d93c8d52 ---- /dev/null -+++ b/pyproject.toml.setuppy -@@ -0,0 +1,9 @@ -+# pyproject.toml needed to build with setup.py -+# This file is used temporarily to replace the main pyproject.toml when needing -+# to avoid building with Meson (e.g., in the Emscripten/Pyodide CI job) -+[build-system] -+requires = [ -+ "setuptools==59.2.0", -+ "wheel==0.38.1", -+ "Cython>=0.29.34,<3.0", -+] - -From 027de0ab6d24e6336682ef6fa150ae09f007a5da Mon Sep 17 00:00:00 2001 -From: mattip <matti.picus@gmail.com> -Date: Sun, 11 Jun 2023 16:11:34 +0300 -Subject: [PATCH 07/11] use MSVC and force 64-bit OpenBLAS interfaces - ---- - pyproject.toml | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/pyproject.toml b/pyproject.toml -index 9f03fa8d0e5..6cef90c6962 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -167,6 +167,11 @@ environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFL - select = "*-win32" - environment = { OPENBLAS64_="", OPENBLAS="openblas", NPY_USE_BLAS_ILP64="0", CFLAGS="-m32", LDFLAGS="-m32" } - -+[tool.meson-python.args] -+setup = ['--vsenv'] -+# This should not be set on 32-bit builds... -+compile = ['-DBLAS_SYMBOL_SUFFIX=64_'] -+ - [tool.spin] - package = 'numpy' - - -From 9ce0d806a881c87a203efccf106cf5d3d6bb46e0 Mon Sep 17 00:00:00 2001 -From: mattip <matti.picus@gmail.com> -Date: Sun, 11 Jun 2023 16:28:35 +0300 -Subject: [PATCH 08/11] drop rtools in wheel builds, do - -DDBLAS_SYMBOL_SUFFIX=64_ differently - ---- - pyproject.toml | 8 +++----- - 2 files changed, 3 insertions(+), 16 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 6cef90c6962..a9d7f87b2b5 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -147,7 +147,7 @@ test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}" - manylinux-x86_64-image = "manylinux2014" - manylinux-aarch64-image = "manylinux2014" - musllinux-x86_64-image = "musllinux_1_1" --environment = { CFLAGS="-std=c99 -fno-strict-aliasing", LDFLAGS="-Wl,--strip-debug", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DDBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="-Wl,--strip-debug", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux" } - - [tool.cibuildwheel.macos] - # For universal2 wheels, we will need to fuse them manually -@@ -158,10 +158,10 @@ environment = { CFLAGS="-std=c99 -fno-strict-aliasing", LDFLAGS="-Wl,--strip-deb - archs = "x86_64 arm64" - test-skip = "*_universal2:arm64" - # MACOS linker doesn't support stripping symbols --environment = { CFLAGS="-std=c99 -fno-strict-aliasing", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DDBLAS_SYMBOL_SUFFIX=64_", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS" } - - [tool.cibuildwheel.windows] --environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="", LDFLAGS="" } -+environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DDBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="" } - - [[tool.cibuildwheel.overrides]] - select = "*-win32" -@@ -169,8 +169,6 @@ environment = { OPENBLAS64_="", OPENBLAS="openblas", NPY_USE_BLAS_ILP64="0", CFL - - [tool.meson-python.args] - setup = ['--vsenv'] --# This should not be set on 32-bit builds... --compile = ['-DBLAS_SYMBOL_SUFFIX=64_'] - - [tool.spin] - package = 'numpy' - -From 067e51454eeff3ce302144803baef92add308668 Mon Sep 17 00:00:00 2001 -From: mattip <matti.picus@gmail.com> -Date: Sun, 11 Jun 2023 17:05:02 +0300 -Subject: [PATCH 09/11] typo, install pkg-config on windows - ---- - pyproject.toml | 6 +++--- - 2 files changed, 8 insertions(+), 3 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index a9d7f87b2b5..a0b645938d1 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -147,7 +147,7 @@ test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}" - manylinux-x86_64-image = "manylinux2014" - manylinux-aarch64-image = "manylinux2014" - musllinux-x86_64-image = "musllinux_1_1" --environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DDBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="-Wl,--strip-debug", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="-Wl,--strip-debug", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux" } - - [tool.cibuildwheel.macos] - # For universal2 wheels, we will need to fuse them manually -@@ -158,10 +158,10 @@ environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DDBLAS_SYMBOL_SUFFIX=64_" - archs = "x86_64 arm64" - test-skip = "*_universal2:arm64" - # MACOS linker doesn't support stripping symbols --environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DDBLAS_SYMBOL_SUFFIX=64_", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS" } - - [tool.cibuildwheel.windows] --environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DDBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="" } -+environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="" } - - [[tool.cibuildwheel.overrides]] - select = "*-win32" - -From 9999c3f3a8c7facef77dc9859a8a25f39f14f7fd Mon Sep 17 00:00:00 2001 -From: mattip <matti.picus@gmail.com> -Date: Sun, 11 Jun 2023 22:18:57 +0300 -Subject: [PATCH 10/11] set PKG_CONFIG_PATH for windows, add CXXFLAGS - ---- - pyproject.toml | 6 +++--- - 2 files changed, 4 insertions(+), 3 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index a0b645938d1..32bde348d7d 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -147,7 +147,7 @@ test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}" - manylinux-x86_64-image = "manylinux2014" - manylinux-aarch64-image = "manylinux2014" - musllinux-x86_64-image = "musllinux_1_1" --environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="-Wl,--strip-debug", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", LDFLAGS="-Wl,--strip-debug", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", RUNNER_OS="Linux"} - - [tool.cibuildwheel.macos] - # For universal2 wheels, we will need to fuse them manually -@@ -158,10 +158,10 @@ environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_", - archs = "x86_64 arm64" - test-skip = "*_universal2:arm64" - # MACOS linker doesn't support stripping symbols --environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS" } -+environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS"} - - [tool.cibuildwheel.windows] --environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DBLAS_SYMBOL_SUFFIX=64_", LDFLAGS="" } -+environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", LDFLAGS=""} - - [[tool.cibuildwheel.overrides]] - select = "*-win32" - -From ffcd334bd9da7ce4779e79636ecd047e2f20dd5b Mon Sep 17 00:00:00 2001 -From: mattip <matti.picus@gmail.com> -Date: Sun, 11 Jun 2023 23:17:00 +0300 -Subject: [PATCH 11/11] disable pypy builds, move PKG_CONFIG_PATH for windows - ---- - pyproject.toml | 4 ++-- - 3 files changed, 4 insertions(+), 5 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 32bde348d7d..55065d1362f 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -161,11 +161,11 @@ test-skip = "*_universal2:arm64" - environment = { CFLAGS="-std=c99 -fno-strict-aliasing -DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", OPENBLAS64_="/usr/local", NPY_USE_BLAS_ILP64="1", CC="clang", CXX = "clang++", RUNNER_OS="macOS"} - - [tool.cibuildwheel.windows] --environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", LDFLAGS=""} -+environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", CXXFLAGS="-DBLAS_SYMBOL_SUFFIX=64_ -DHAVE_BLAS_ILP64", LDFLAGS="", PKG_CONFIG_PATH="D:\\a\\numpy\\numpy\\openblas\\lib\\pkgconfig;"} - - [[tool.cibuildwheel.overrides]] - select = "*-win32" --environment = { OPENBLAS64_="", OPENBLAS="openblas", NPY_USE_BLAS_ILP64="0", CFLAGS="-m32", LDFLAGS="-m32" } -+environment = { OPENBLAS64_="", OPENBLAS="openblas", NPY_USE_BLAS_ILP64="0", CFLAGS="-m32", LDFLAGS="-m32", PKG_CONFIG_PATH="D:\\a\\numpy\\numpy\\openblas\\lib\\pkgconfig;"} - - [tool.meson-python.args] - setup = ['--vsenv'] diff --git a/dev-python/numpy/files/numpy-1.25.1-fix-scalartypes.patch b/dev-python/numpy/files/numpy-1.25.1-fix-scalartypes.patch deleted file mode 100644 index aa381d243d88..000000000000 --- a/dev-python/numpy/files/numpy-1.25.1-fix-scalartypes.patch +++ /dev/null @@ -1,69 +0,0 @@ -https://bugs.gentoo.org/910739 -https://github.com/numpy/numpy/issues/24239 -https://github.com/numpy/numpy/pull/24240 -https://github.com/numpy/numpy/commit/d9c0c96582373de0990908c89ed75ae16279e8e5 - -From d9c0c96582373de0990908c89ed75ae16279e8e5 Mon Sep 17 00:00:00 2001 -From: Sam James <sam@gentoo.org> -Date: Sun, 23 Jul 2023 21:31:08 +0100 -Subject: [PATCH] BUG: Fix C types in scalartypes - -https://github.com/numpy/numpy/pull/23746 introduced a fast path for scalar -int conversions, but the map between Python types and C types was subtly -wrong. - -This fixes tests on at least ppc32 (big-endian). - -Many thanks to Sebastian Berg for debugging this with me and pointing out -what needed to be fixed. - -Closes #24239. - -Fixes: 81caed6e3c34c4bf4b22b4f6167e816ba2a3f73c ---- a/numpy/core/src/multiarray/scalartypes.c.src -+++ b/numpy/core/src/multiarray/scalartypes.c.src -@@ -283,34 +283,34 @@ genint_type_str(PyObject *self) - void *val = scalar_value(self, descr); - switch (descr->type_num) { - case NPY_BYTE: -- item = PyLong_FromLong(*(int8_t *)val); -+ item = PyLong_FromLong(*(npy_byte *)val); - break; - case NPY_UBYTE: -- item = PyLong_FromUnsignedLong(*(uint8_t *)val); -+ item = PyLong_FromUnsignedLong(*(npy_ubyte *)val); - break; - case NPY_SHORT: -- item = PyLong_FromLong(*(int16_t *)val); -+ item = PyLong_FromLong(*(npy_short *)val); - break; - case NPY_USHORT: -- item = PyLong_FromUnsignedLong(*(uint16_t *)val); -+ item = PyLong_FromUnsignedLong(*(npy_ushort *)val); - break; - case NPY_INT: -- item = PyLong_FromLong(*(int32_t *)val); -+ item = PyLong_FromLong(*(npy_int *)val); - break; - case NPY_UINT: -- item = PyLong_FromUnsignedLong(*(uint32_t *)val); -+ item = PyLong_FromUnsignedLong(*(npy_uint *)val); - break; - case NPY_LONG: -- item = PyLong_FromLong(*(int64_t *)val); -+ item = PyLong_FromLong(*(npy_long *)val); - break; - case NPY_ULONG: -- item = PyLong_FromUnsignedLong(*(uint64_t *)val); -+ item = PyLong_FromUnsignedLong(*(npy_ulong *)val); - break; - case NPY_LONGLONG: -- item = PyLong_FromLongLong(*(long long *)val); -+ item = PyLong_FromLongLong(*(npy_longlong *)val); - break; - case NPY_ULONGLONG: -- item = PyLong_FromUnsignedLongLong(*(unsigned long long *)val); -+ item = PyLong_FromUnsignedLongLong(*(npy_ulonglong *)val); - break; - default: - item = gentype_generic_method(self, NULL, NULL, "item"); diff --git a/dev-python/numpy/files/numpy-1.26.0_beta1-npy_cast_info.patch b/dev-python/numpy/files/numpy-1.26.0_beta1-npy_cast_info.patch deleted file mode 100644 index cd09573deb7f..000000000000 --- a/dev-python/numpy/files/numpy-1.26.0_beta1-npy_cast_info.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 9cfb416aad45260e1cc837029638d6b39cea9e38 Mon Sep 17 00:00:00 2001 -From: Nathan Goldbaum <nathan.goldbaum@gmail.com> -Date: Mon, 21 Aug 2023 15:45:11 -0600 -Subject: [PATCH] BUG: fix NPY_cast_info error handling in choose - ---- - numpy/core/src/multiarray/item_selection.c | 2 +- - numpy/core/tests/test_multiarray.py | 6 ++++++ - 2 files changed, 7 insertions(+), 1 deletion(-) - -diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c -index e935a27edb6..c1d4a950815 100644 ---- a/numpy/core/src/multiarray/item_selection.c -+++ b/numpy/core/src/multiarray/item_selection.c -@@ -968,6 +968,7 @@ PyArray_Choose(PyArrayObject *ip, PyObject *op, PyArrayObject *out, - PyArrayObject **mps, *ap; - PyArrayMultiIterObject *multi = NULL; - npy_intp mi; -+ NPY_cast_info cast_info = {.func = NULL}; - ap = NULL; - - /* -@@ -1045,7 +1046,6 @@ PyArray_Choose(PyArrayObject *ip, PyObject *op, PyArrayObject *out, - npy_intp transfer_strides[2] = {elsize, elsize}; - npy_intp one = 1; - NPY_ARRAYMETHOD_FLAGS transfer_flags = 0; -- NPY_cast_info cast_info = {.func = NULL}; - if (PyDataType_REFCHK(dtype)) { - int is_aligned = IsUintAligned(obj); - PyArray_GetDTypeTransferFunction( -diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py -index 966b75cc122..2836c8985c9 100644 ---- a/numpy/core/tests/test_multiarray.py -+++ b/numpy/core/tests/test_multiarray.py -@@ -10043,3 +10043,9 @@ def test_gh_22683(): - np.choose(np.zeros(10000, dtype=int), [a], out=a) - refc_end = sys.getrefcount(b) - assert refc_end - refc_start < 10 -+ -+ -+def test_gh_24459(): -+ a = np.zeros((50, 3), dtype=np.float64) -+ with pytest.raises(TypeError): -+ np.choose(a, [3, -1]) diff --git a/dev-python/numpy/files/replace_cpuflags.awk b/dev-python/numpy/files/replace_cpuflags.awk deleted file mode 100644 index 11b8bd53b2c3..000000000000 --- a/dev-python/numpy/files/replace_cpuflags.awk +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/awk -f - -{ - GENTOO_ENABLE=1; - if (match($0, /flags="([^"=]*)"/, cflags)) { - split(cflags[1], fields); - for (i in fields) { - if (match(fields[i], /-m([[:graph:]]*)/, inst)) { - if (!index(enabled_flags, inst[1])) { - GENTOO_ENABLE=0; - }}}} - if (!GENTOO_ENABLE) { sub(cflags[1], "-mGENTOO_DISABLE"); } - print; -} diff --git a/dev-python/numpy/numpy-1.24.0.ebuild b/dev-python/numpy/numpy-1.24.0.ebuild deleted file mode 100644 index c1c0e7b5f49e..000000000000 --- a/dev-python/numpy/numpy-1.24.0.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 1999-2023 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 pypi toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - >=dev-python/cython-0.29.30[${PYTHON_USEDEP}] - lapack? ( - virtual/pkgconfig - ) - 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 - -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 - - 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 ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.24.2.ebuild b/dev-python/numpy/numpy-1.24.2.ebuild deleted file mode 100644 index 787da4ab6555..000000000000 --- a/dev-python/numpy/numpy-1.24.2.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 pypi toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - >=dev-python/cython-0.29.30[${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}] - ) -" - -PATCHES=( - "${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch -) - -distutils_enable_tests pytest - -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_histograms.py::TestHistogram::test_big_arrays - 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 - - 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 ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.24.4-r1.ebuild b/dev-python/numpy/numpy-1.24.4-r1.ebuild deleted file mode 100644 index 5db2ffe20ea8..000000000000 --- a/dev-python/numpy/numpy-1.24.4-r1.ebuild +++ /dev/null @@ -1,187 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi -inherit toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" -CPU_FLAGS_X86=( avx avx2 avx512dq avx512f avx512vl f16c fma4 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 xop ) -IUSE="lapack $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - <dev-python/cython-3[${PYTHON_USEDEP}] - >=dev-python/cython-0.29.30[${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}] - ) -" - -PATCHES=( - "${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch - "${FILESDIR}"/numpy-1.24.3-fix-c++-linkage.patch -) - -distutils_enable_tests pytest - -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 - - # The following has no effect on architectures other than x86 and amd64. - local flag enabled_flags=() - for flag in "${CPU_FLAGS_X86[@]}"; do - use cpu_flags_x86_${flag} && enabled_flags+=( ${flag/_/.} ) - done - gawk -i inplace -v "enabled_flags=${enabled_flags[*]}" \ - -f "${FILESDIR}"/replace_cpuflags.awk \ - numpy/distutils/ccompiler_opt.py || die - rm -f numpy/distutils/tests/test_ccompiler_opt.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x MAKEOPTS=-j1 #660754 - - distutils-r1_python_compile ${NUMPY_FCONFIG} -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk- and memory-hungry - numpy/lib/tests/test_histograms.py::TestHistogram::test_big_arrays - 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 - - case "${ABI}" in - alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) - EPYTEST_DESELECT+=( - # too large for 32-bit platforms - numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ) - ;; - *) - ;; - esac - - distutils_install_for_testing --single-version-externally-managed \ - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} - - cd "${TEST_DIR}/lib" || die - epytest -k "not _fuzz" -n "$(makeopts_jobs)" -} - -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 ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.24.4.ebuild b/dev-python/numpy/numpy-1.24.4.ebuild deleted file mode 100644 index 91c4a9011068..000000000000 --- a/dev-python/numpy/numpy-1.24.4.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi -inherit toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - <dev-python/cython-3[${PYTHON_USEDEP}] - >=dev-python/cython-0.29.30[${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}] - ) -" - -PATCHES=( - "${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch - "${FILESDIR}"/numpy-1.24.3-fix-c++-linkage.patch -) - -distutils_enable_tests pytest - -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() { - local -x MAKEOPTS=-j1 #660754 - - distutils-r1_python_compile ${NUMPY_FCONFIG} -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk- and memory-hungry - numpy/lib/tests/test_histograms.py::TestHistogram::test_big_arrays - 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 - - case "${ABI}" in - alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) - EPYTEST_DESELECT+=( - # too large for 32-bit platforms - numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ) - ;; - *) - ;; - esac - - distutils_install_for_testing --single-version-externally-managed \ - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} - - cd "${TEST_DIR}/lib" || die - epytest -k "not _fuzz" -n "$(makeopts_jobs)" -} - -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 ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.25.1-r3.ebuild b/dev-python/numpy/numpy-1.25.1-r3.ebuild deleted file mode 100644 index 1b46bf5e470b..000000000000 --- a/dev-python/numpy/numpy-1.25.1-r3.ebuild +++ /dev/null @@ -1,159 +0,0 @@ -# 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} pypy3 ) -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" -IUSE="lapack" -if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -fi - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - >=dev-util/meson-1.1.0 - >=dev-python/cython-0.29.30[${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}] - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-1.25.0_rc1-meson-pyproject.toml.patch - "${FILESDIR}"/${PN}-1.25.0-skip-python3.12-irrelevant-tests.patch - "${FILESDIR}"/${PN}-1.25.1-fix-scalartypes.patch -) - -distutils_enable_tests pytest - -python_prepare_all() { - append-flags -fno-strict-aliasing - - distutils-r1_python_prepare_all - - # TODO: Please drop once 1.25.0_rc1-meson-pyproject.toml.patch is gone - sed -i -e "s:version = \"2.0.0.dev0\":version = \"${PV}\":" pyproject.toml || die -} - -python_configure_all() { - DISTUTILS_ARGS=( - -Dblas=$(usev lapack cblas) - -Dlapack=$(usev lapack lapack) - ) -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk-and-memory-hungry - lib/tests/test_io.py::test_large_zip - - # 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 - - # XXX: I've no idea why this ends up being needed in deselect and not ignore - typing/tests/test_typing.py - ) - - if [[ ${EPYTHON} == pypy3 ]]; then - EPYTEST_DESELECT+=( - # TODO: crashed - lib/tests/test_histograms.py::TestHistogram::test_big_arrays - ) - fi - - 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]' - lib/tests/test_histograms.py::TestHistogram::test_big_arrays - ) - ;; - *) - ;; - 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 -} diff --git a/dev-python/numpy/numpy-1.25.2.ebuild b/dev-python/numpy/numpy-1.25.2.ebuild index 1493b6f36e70..ee2956f8200c 100644 --- a/dev-python/numpy/numpy-1.25.2.ebuild +++ b/dev-python/numpy/numpy-1.25.2.ebuild @@ -23,7 +23,7 @@ LICENSE="BSD" SLOT="0" IUSE="lapack" if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc ~x86" + KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86" fi RDEPEND=" diff --git a/dev-python/numpy/numpy-1.26.0_beta1-r1.ebuild b/dev-python/numpy/numpy-1.26.0_beta1-r1.ebuild deleted file mode 100644 index 1072d42ba823..000000000000 --- a/dev-python/numpy/numpy-1.26.0_beta1-r1.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# 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} pypy3 ) -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" -IUSE="lapack" -if [[ ${PV} != *_[rab]* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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() { - local PATCHES=( - # https://github.com/numpy/numpy/pull/24484 - "${FILESDIR}/${P}-npy_cast_info.patch" - ) - - append-flags -fno-strict-aliasing - - distutils-r1_python_prepare_all -} - -python_configure_all() { - DISTUTILS_ARGS=( - -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 -} diff --git a/dev-python/numpy/numpy-1.26.0_beta1.ebuild b/dev-python/numpy/numpy-1.26.0_beta1.ebuild deleted file mode 100644 index bc6646bd3079..000000000000 --- a/dev-python/numpy/numpy-1.26.0_beta1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# 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} pypy3 ) -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" -IUSE="lapack" -if [[ ${PV} != *_[rab]* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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=( - -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 -} diff --git a/dev-python/numpy/numpy-1.26.0_rc1.ebuild b/dev-python/numpy/numpy-1.26.0_rc1.ebuild deleted file mode 100644 index bc6646bd3079..000000000000 --- a/dev-python/numpy/numpy-1.26.0_rc1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# 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} pypy3 ) -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" -IUSE="lapack" -if [[ ${PV} != *_[rab]* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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=( - -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 -} |