Commit graph

107 commits

Author SHA1 Message Date
Vladimír Čunát 7ea07d2c0c
python3Packages.numpy: temporarily avoid rebuild on !isClang
Ugly but fortunately I'll revert it immediately.
2023-07-20 09:30:53 +02:00
Randy Eckenrode 4f923aa46c
python3Packages.numpy: fix test failure on x86_64-darwin under Rosetta 2
The `atanhl` function is broken under Rosetta 2 with 80-bit long
doubles, which numpy uses to implement long double complex numbers. This
results in a test failure. Attempts were made to change the
implementation of things, but that just changed the breakage.

The following Swift program demonstrates the problem.

    import Foundation
    import Numerics

    let x = Float80(1.00000000e-20)
    let z = Complex(x)

    print("X: \(x), Z: \(z)")

    let x_atanh = Float80.atanh(x)
    let z_atanh = Complex.atanh(z)

    print("atanh:")
    print("X: \(x_atanh), Z: \(z_atanh)")

    let d = abs(x_atanh / z_atanh.real - 1)

    print("d: \(d)")

On x86_64-darwin hardware, it prints the following:

    X: 1e-20, Z: (1e-20, 0.0)
    atanh:
    X: 1e-20, Z: (1e-20, 0.0)
    d: 0.0

On aarch64-darwin under Rosetta 2, it prints the following:

   X: 1e-20, Z: (1e-20, 0.0)
   atanh:
   X: 1e-20, Z: (-1.0237493319595677839e-40, 0.0)
   d: 9.7680161420558978584e+19

The latter is obviously incorrect. FB12656897 was submitted to Apple,
but even if this is fixed eventually, this derivation needs to build for
users (and Hydra) who aren’t on the latest version.
2023-07-19 13:43:34 -06:00
Randy Eckenrode 8e12c817e9
python3Packages.numpy: fix test failure on aarch64-darwin 2023-07-19 13:43:34 -06:00
Randy Eckenrode 1c0a219ee2
python3Packages.numpy: fix build with clang 16
* Fix an invalid function pointer conversion; and
* Disable strict overflow hardening due to an unused argument warning
  that is promoted to -Werror.
2023-07-19 13:43:33 -06:00
Sandro Jäckel 3d1f881267
python310Packages.numpy: run tests correct so that the build can fail 2023-07-06 00:20:48 +02:00
Sandro 1f49db7743
Merge pull request #233447 from SuperSandro2000/hypothesis-doc-pasthru
python310Packages.hypothesis: move documentation to passthru to reduce dependencies
2023-06-07 21:45:55 +02:00
Sandro Jäckel 00000000b0
treewide: remove removed hypothesis enableDocumentation option 2023-05-23 00:52:26 +02:00
Sandro Jäckel 42428ccca6
python310Packages.numpy: remove unused inputs 2023-05-22 18:23:44 +02:00
Martin Weinelt bcebde2aff python3Packages.numpy: 1.23.5 -> 1.24.2 2023-03-03 23:56:48 +01:00
Guillaume Girol 90c78aee6c Merge branch 'nativeCheckInputs' into staging-nativeCheckInputs 2023-01-21 12:00:00 +00:00
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Dmitry Bogatov 35a4ca4bde python3.pkgs.hypothesis: build offline documentation 2023-01-15 16:16:55 -05:00
Martin Weinelt fe6201630f python3Packages.numpy: 1.23.3 -> 1.23.5 2023-01-05 13:20:48 +01:00
Frederik Rietdijk b462aefc7f python3Packages.numpy: revert to setuptools
Somehow the pyproject configuration fails.
2022-09-19 10:37:48 +02:00
Martin Weinelt d7977ef9e9 python3Packages.numpy: 1.23.1 -> 1.23.3
https://github.com/numpy/numpy/releases/tag/v1.23.2
https://github.com/numpy/numpy/releases/tag/v1.23.3
2022-09-18 23:57:30 +02:00
Frederik Rietdijk df6feb4c08 python3Packages.numpy: fix format and folder to run tests in 2022-09-15 16:38:31 +02:00
Martin Weinelt a93740e9ba python3Packages.numpy: 1.21.6 -> 1.23.1 2022-07-21 22:33:36 +02:00
Martin Weinelt a2004aff37
python3Packages.numpy: 1.21.5 -> 1.21.6
https://github.com/numpy/numpy/releases/tag/v1.21.6
2022-06-06 11:46:20 -07:00
Martin Weinelt 613e47dd1a python3Packages.numpy: 1.21.4 -> 1.21.5 2022-01-23 01:09:43 +01:00
Frederik Rietdijk ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00
Jonathan Ringer 6044d785ec
python3Packages.numpy: 1.21.2 -> 1.21.4 2021-11-30 18:52:06 -08:00
Jonathan Ringer dfcd49afe2 python3Packages.numpy: remove unneeded patch
Patch was already merged upstream, no longer relevant
2021-11-22 22:14:49 -08:00
Sandro ff77d0dbb2
Merge pull request #133446 from veprbl/pr/numpy_werror_fix 2021-11-22 16:38:19 +01:00
Markus S. Wamser 2043dbb6fa pkgs.development.python-modules: remove unused args 2021-11-12 19:10:54 -08:00
Martin Weinelt 288755b725 python3Packages.numpy: 1.21.1 -> 1.21.2 2021-09-05 14:58:00 +02:00
Dmitry Kalinkin 160c8d8886
python3Packages.numpy: proper fix for Werror misdetection bug 2021-08-10 23:29:42 -04:00
Dmitry Kalinkin 9254bfc0e0
python3Packages.numpy: workaround flakey compiler feature detection 2021-08-06 15:16:39 -04:00
Martin Weinelt c4591134f4
python3Packages.numpy: 1.20.3 -> 1.21.1 2021-08-05 11:21:37 +02:00
Martin Weinelt 056d17864d python3Package.numpy: enable test on pypy
The bug in question was closed in 2019 and I saw no issue building
pypyPackages.numpy.
2021-06-22 13:42:45 +02:00
Martin Weinelt b626057d7c python3Packages.numpy: 1.20.2 -> 1.20.3 2021-06-22 13:42:34 +02:00
Martin Weinelt 8dcbb049e3 python3Packages.numpy: 1.20.1 -> 1.20.2
https://numpy.org/devdocs/release/1.20.2-notes.html
2021-04-07 14:38:58 +02:00
Robert T. McGibbon e29a4c3124 python3Packages.numpy: 1.19.4 -> 1.20.1 2021-02-26 11:02:01 +01:00
Frederik Rietdijk db417d32e8 python3Packages.numpy: fix compatibility with newer pytest 2020-12-01 14:44:25 +01:00
Jonathan Ringer ff4c38abd9 python3Packages.numpy: use pytest_5 2020-12-01 14:44:24 +01:00
Jonathan Ringer e949d75899 python2Packages.numpy: fix openblas threads 2020-11-17 09:39:27 -08:00
Jonathan Ringer 8f7cec2297 python3Packages.numpy: fix tests for >64 core machines 2020-11-17 09:39:27 -08:00
Frederik Rietdijk baa93c3dee python3Packages.numpy: 1.19.2 -> 1.19.4 2020-11-05 15:47:08 -08:00
Nicolai Kellerer e95b156a0f pythonPackages.numpy: set license to bsd3 2020-11-05 15:47:06 -08:00
Frederik Rietdijk da014855f0 python3Packages.numpy: 1.19.1 -> 1.19.2 2020-11-05 15:47:00 -08:00
Matthew Bauer b3d5272ff0 numpy: set runtime_library_dirs too
This appears to be needed in some Python distutils for the library to
get on RPATH correctly. I’m not sure why this worked before, but I
needed this value set for Python 3.8 numpy to work correctly.
2020-09-04 20:10:53 +02:00
Frederik Rietdijk de3e467a47 python3Packages.numpy: 1.16.5 -> 1.16.6 2020-08-29 10:23:39 -07:00
Daniël de Kok 22089bf50a python3Packages.numpy: add hypothesis to checkInputs
numpy has added hypothesis as a dependency for running property-based
tests:

https://github.com/numpy/numpy/pull/15189

However, hypothesis is not an input of the derivations. And thus tests
have been failing with:

ERROR .. - ModuleNotFoundError: No module named 'hypothesis'

https://hydra.nixos.org/build/124613306/nixlog/1

This change adds hypothesis to checkInputs, so that tests are run
again.
2020-08-15 08:37:29 +02:00
Frederik Rietdijk 69cb94ebb3 python: numpy: 1.19.0 -> 1.19.1 2020-08-04 21:54:26 +02:00
Dmitry Kalinkin 1e4290b78c
python2Packages.numpy: fix build on darwin
By applying the old patch (compatible with 1.18.x and older). Also
refactor expression to make presence of the "old" version more
explicit.
2020-07-12 21:49:31 -04:00
Dmitry Kalinkin 721d0c43af numpy: fix distutils patch for 1.19.0 2020-07-04 14:35:46 +02:00
Frederik Rietdijk 98f335a87c python: numpy: 1.18.5 -> 1.19.0 2020-06-30 17:35:29 +02:00
Frederik Rietdijk d54acb0da4 python: numpy: 1.18.4 -> 1.18.5 2020-06-05 18:44:50 +02:00
Frederik Rietdijk 9aae255497 python: numpy: 1.18.3 -> 1.18.4 2020-05-11 22:12:08 +02:00
Matthew Bauer 8bdb2a058e numpy: set lapack, blas sections
When using netlib lapack/blas, the section name doesn’t match what
numpy expects. So we need to add extra sections for both so that the
right directory is found. The original “blas.implementation” section
may not actually be still required, but it is still a good idea so
that numpy know whether to apply any blas-implementation specific
quirks.

Fixes #86613
2020-05-08 06:47:30 +02:00
Frederik Rietdijk 5ca64bb043 python: numpy: 1.18.2 -> 1.18.3 2020-04-27 19:37:36 +02:00