diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-31 11:54:46 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-31 13:32:16 +0200 |
| commit | 84e24ab04abf6cdcd590831fa227237389e29aa0 (patch) | |
| tree | b8816502f72ab00cab372b07e00b5422e57c4d90 | |
| parent | e842c506c6d261a1802d99cb5fd8382c96cb608f (diff) | |
electrophysiology: python-conpy: Fix build.
* guix-science/packages/electrophysiology.scm (python-conpy)
[arguments]<#:phases>: Fix compatibility with recent releases of NumPy. Set
Numba cache directory to a writable location.
| -rw-r--r-- | guix-science/packages/electrophysiology.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm index 35e28a6..83649a7 100644 --- a/guix-science/packages/electrophysiology.scm +++ b/guix-science/packages/electrophysiology.scm | |||
| @@ -734,6 +734,13 @@ approach. ") | |||
| 734 | (substitute* "conpy/forward.py" | 734 | (substitute* "conpy/forward.py" |
| 735 | ((", disp=False\\)") | 735 | ((", disp=False\\)") |
| 736 | ")")))) | 736 | ")")))) |
| 737 | |||
| 738 | (add-after 'unpack 'fix-numpy-compatibility | ||
| 739 | (lambda _ | ||
| 740 | (substitute* (list "conpy/forward.py" "conpy/stats.py") | ||
| 741 | (("np\\.in1d") | ||
| 742 | "np.isin")))) | ||
| 743 | |||
| 737 | (add-after 'unpack 'fix-pytest-configuration | 744 | (add-after 'unpack 'fix-pytest-configuration |
| 738 | (lambda _ | 745 | (lambda _ |
| 739 | (substitute* "pyproject.toml" | 746 | (substitute* "pyproject.toml" |
| @@ -741,10 +748,17 @@ approach. ") | |||
| 741 | "") | 748 | "") |
| 742 | (("--cov=conpy") | 749 | (("--cov=conpy") |
| 743 | "")))) | 750 | "")))) |
| 751 | |||
| 752 | (add-before 'build 'set-numba-cache-dir | ||
| 753 | (lambda _ | ||
| 754 | (setenv "NUMBA_CACHE_DIR" | ||
| 755 | (getcwd)))) | ||
| 756 | |||
| 744 | (add-before 'check 'set-home | 757 | (add-before 'check 'set-home |
| 745 | (lambda _ | 758 | (lambda _ |
| 746 | (setenv "HOME" | 759 | (setenv "HOME" |
| 747 | (getcwd)))) | 760 | (getcwd)))) |
| 761 | |||
| 748 | (add-before 'check 'set-mne-datasets-paths | 762 | (add-before 'check 'set-mne-datasets-paths |
| 749 | (lambda _ | 763 | (lambda _ |
| 750 | (let ((mne-sample-data #$(this-package-native-input | 764 | (let ((mne-sample-data #$(this-package-native-input |
