GNU bug report logs -
#76240
[PATCH] gnu: Add NumPy 2 related variants.
Previous Next
To reply to this bug, email your comments to 76240 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Wed, 12 Feb 2025 20:59:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sharlatan Hellseher <sharlatanus <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org
.
(Wed, 12 Feb 2025 20:59:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This to make Pandas, MatplotLib and SciPy compatible with NumPy 2. They
need to be build with newer version otherwise it raise the error.
* gnu/packages/python-science.scm: (python-pandas-with-numpy-2,
python-scipy-with-numpy-2): New variables.
* gnu/packages/python-xyz.scm (python-matplotlib-with-numpy-2): New variable.
Change-Id: I53878b643ea6f7b35e3d893a18da438c2c111c52
---
gnu/packages/python-science.scm | 19 +++++++++++++++++++
gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 1f4cdb239a1..0332546d22d 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -475,6 +475,14 @@ (define-public python-scipy
routines such as routines for numerical integration and optimization.")
(license license:bsd-3)))
+(define-public python-scipy-with-numpy-2
+ (package
+ (inherit python-scipy)
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-scipy)
+ (replace "python-numpy" python-numpy-2)
+ (replace "python-matplotlib" python-matplotlib-with-numpy-2)))))
+
(define-public python-scikit-allel
(package
(name "python-scikit-allel")
@@ -1479,6 +1487,17 @@ (define-public python-pandas-2
(define-public python-pandas python-pandas-2)
+(define-public python-pandas-with-numpy-2
+ (package
+ (inherit python-pandas)
+ (native-inputs
+ (modify-inputs (package-native-inputs python-pandas)
+ (replace "python-numpy" python-numpy-2)
+ (replace "python-matplotlib" python-matplotlib-with-numpy-2)))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-pandas)
+ (replace "python-matplotlib" python-matplotlib-with-numpy-2)))))
+
(define-public python-pandas-stubs
(package
(name "python-pandas-stubs")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a4017fffe48..1fc6ebdb0b4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10462,6 +10462,27 @@ (define-public python-matplotlib
toolkits.")
(license license:psfl)))
+(define-public python-matplotlib-with-numpy-2
+ (package
+ (inherit python-matplotlib)
+ (version "3.8.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "matplotlib" version))
+ (sha256
+ (base32 "1spzglb3hh3959z72iwspm9dsbf5zz2q3hri1sb5ihcybrykkb4a"))))
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments python-matplotlib)
+ ((#:tests? _ #t) #f)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (delete 'sanity-check)))))
+ (propagated-inputs
+ (modify-inputs (package-propagated-inputs python-matplotlib)
+ (replace "python-numpy" python-numpy-2)))))
+
(define-public python-matplotlib-documentation
(package
(inherit python-matplotlib)
base-commit: c9abfacd9f58f7365668b67a8125640b7497932a
prerequisite-patch-id: a2254ccef49d23b75149b22b200b6156097b673f
prerequisite-patch-id: 4e4a0833f7c017f2922344883800161335290814
prerequisite-patch-id: 97653359db283a3832359fc4cd0dc1741a2f51bc
prerequisite-patch-id: 2eac1b43f9e9050e8467c89cd384da43bff63305
--
2.47.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Fri, 14 Feb 2025 13:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76240 <at> debbugs.gnu.org (full text, mbox):
Hi!
Sharlatan Hellseher <sharlatanus <at> gmail.com> skribis:
> This to make Pandas, MatplotLib and SciPy compatible with NumPy 2. They
> need to be build with newer version otherwise it raise the error.
>
> * gnu/packages/python-science.scm: (python-pandas-with-numpy-2,
> python-scipy-with-numpy-2): New variables.
>
> * gnu/packages/python-xyz.scm (python-matplotlib-with-numpy-2): New variable.
>
> Change-Id: I53878b643ea6f7b35e3d893a18da438c2c111c52
[...]
> +(define-public python-scipy-with-numpy-2
> + (package
> + (inherit python-scipy)
> + (propagated-inputs
Comment for all of these: it should be ‘package/inherit’ (to potentially
inherit replacements) and also change the ‘name’ field to distinguish
it.
Actually, assuming we want to move to NumPy 2.x going forward, I would
suggest keeping the regular name for the -with-numpy-2 variants (like
“python-scipy”) and choose a different name for the NumPy 1.x variants
(like “python-scipy-with-numpy-1”).
That way, somebody running:
guix shell python python-numpy python-scipy
will still get a consistent package set.
How does that sound?
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Fri, 21 Feb 2025 11:27:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 76240 <at> debbugs.gnu.org (full text, mbox):
Hey Oleg,
Ludovic Courtès <ludo <at> gnu.org> skribis:
> Sharlatan Hellseher <sharlatanus <at> gmail.com> skribis:
>
>> This to make Pandas, MatplotLib and SciPy compatible with NumPy 2. They
>> need to be build with newer version otherwise it raise the error.
>>
>> * gnu/packages/python-science.scm: (python-pandas-with-numpy-2,
>> python-scipy-with-numpy-2): New variables.
>>
>> * gnu/packages/python-xyz.scm (python-matplotlib-with-numpy-2): New variable.
>>
>> Change-Id: I53878b643ea6f7b35e3d893a18da438c2c111c52
>
> [...]
>
>> +(define-public python-scipy-with-numpy-2
>> + (package
>> + (inherit python-scipy)
>> + (propagated-inputs
>
> Comment for all of these: it should be ‘package/inherit’ (to potentially
> inherit replacements) and also change the ‘name’ field to distinguish
> it.
>
> Actually, assuming we want to move to NumPy 2.x going forward, I would
> suggest keeping the regular name for the -with-numpy-2 variants (like
> “python-scipy”) and choose a different name for the NumPy 1.x variants
> (like “python-scipy-with-numpy-1”).
>
> That way, somebody running:
>
> guix shell python python-numpy python-scipy
This broke ‘tests/guix-pack-relocatable.sh’ for these reasons:
--8<---------------cut here---------------start------------->8---
+ guix pack -RR python-numpy python-scipy --no-grafts -n
guix pack: error: profile contains conflicting entries for python-numpy
guix pack: error: first entry: python-numpy <at> 2.2.2 /gnu/store/i1g6wbcc0ilhcc5vy4pi70z58gk1716f-python-numpy-2.2.2R
guix pack: error: second entry: python-numpy <at> 1.24.4 /gnu/store/2s1jala0jg56drh4hc19mrdg6w3gswhm-python-numpy-1.24.4R
guix pack: error: ... propagated from python-pythran <at> 0.17.0
guix pack: error: ... propagated from python-scipy <at> 1.12.0
hint: Backtrace:
--8<---------------cut here---------------end--------------->8---
Would be nice to address it before we get a deluge of angry bug reports.
:-)
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Mon, 21 Apr 2025 22:18:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 76240 <at> debbugs.gnu.org (full text, mbox):
Hi Oleg,
Did you have a chance to look into this?
Thanks in advance,
Ludo’.
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hey Oleg,
>
> Ludovic Courtès <ludo <at> gnu.org> skribis:
>
>> Sharlatan Hellseher <sharlatanus <at> gmail.com> skribis:
>>
>>> This to make Pandas, MatplotLib and SciPy compatible with NumPy 2. They
>>> need to be build with newer version otherwise it raise the error.
>>>
>>> * gnu/packages/python-science.scm: (python-pandas-with-numpy-2,
>>> python-scipy-with-numpy-2): New variables.
>>>
>>> * gnu/packages/python-xyz.scm (python-matplotlib-with-numpy-2): New variable.
>>>
>>> Change-Id: I53878b643ea6f7b35e3d893a18da438c2c111c52
>>
>> [...]
>>
>>> +(define-public python-scipy-with-numpy-2
>>> + (package
>>> + (inherit python-scipy)
>>> + (propagated-inputs
>>
>> Comment for all of these: it should be ‘package/inherit’ (to potentially
>> inherit replacements) and also change the ‘name’ field to distinguish
>> it.
>>
>> Actually, assuming we want to move to NumPy 2.x going forward, I would
>> suggest keeping the regular name for the -with-numpy-2 variants (like
>> “python-scipy”) and choose a different name for the NumPy 1.x variants
>> (like “python-scipy-with-numpy-1”).
>>
>> That way, somebody running:
>>
>> guix shell python python-numpy python-scipy
>
> This broke ‘tests/guix-pack-relocatable.sh’ for these reasons:
>
> + guix pack -RR python-numpy python-scipy --no-grafts -n
> guix pack: error: profile contains conflicting entries for python-numpy
> guix pack: error: first entry: python-numpy <at> 2.2.2 /gnu/store/i1g6wbcc0ilhcc5vy4pi70z58gk1716f-python-numpy-2.2.2R
> guix pack: error: second entry: python-numpy <at> 1.24.4 /gnu/store/2s1jala0jg56drh4hc19mrdg6w3gswhm-python-numpy-1.24.4R
> guix pack: error: ... propagated from python-pythran <at> 0.17.0
> guix pack: error: ... propagated from python-scipy <at> 1.12.0
> hint: Backtrace:
>
> Would be nice to address it before we get a deluge of angry bug reports.
> :-)
>
> Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Mon, 21 Apr 2025 22:31:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 76240 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi Ludo,
It good timing to check it after python-team is merged. I need to
refresh my thoughts on this as with default NumPy swapped to 2 the whole
Python science stack needs to be rebuild.
I might need some more research.
- --
Thanks,
Oleg
-----BEGIN PGP SIGNATURE-----
iQJKBAEBCgA0FiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmgGxxIWHHNoYXJsYXRh
bnVzQGdtYWlsLmNvbQAKCRB21ye/9izStbGdEACDRlOJgCXjq4gZ/mU0N3D70DlK
EmlJvcl93s/qk/84RpDl3TQz0wF7mKp7bg26Iz21gJWWWnjSAmCk+5xVMAzYs39P
LkRo8ykjCZkHsK7XSniYhq9g6Q2o/x0oQ45Npza5Ao+/jh+/9lVbwjlF/3M5pt8a
4lh5EX0iPE0K9qecpf1Z5ObwmISZyr9A1Gh5gJHHuD0MVTTQDq6zIgT7Wpboashp
ZwsEglK2OIrkjNFiBIXVBZqMMLHY+qPo49eA7lmkCBzntEfpReDdubUO8Xx8T//7
mO0PtPcuEt5onz9AZdCfz/IMFflmIQpOkT0YtmVPalmajeE/+g1VJWkQh4Ryf0Id
4TQ3YgVWcCq3oTJS09spsJHvKm19yulpH+eIACQc5w2i2VQbr7RG+3CS8N8T3rO3
MTj52QDVru8vsOvfiqze6VoZV906vSOKeg2vpVbzbf2J67ZLCVcF4o+hk/i7Cb18
M0eeMRe4iY/uCuHDr3uVL7lYk1wzx4SY+4NdlaDp2bVvr1M5Ykj5jKxD6pG3WojO
JLvEtNH9e+0HeWnziywtAt2SAGX6FqMbKT7TJ3nN5N0KSljT4B1tQSwI5n2KL0Ks
GH0qyapBqGB/a5xJG/Wps8cEJEZmb2aruwUG8/5LJo0onmyZJxtabcOIjf5q+M8Y
X+cOlYgz0LszW1TIYg==
=oLC6
-----END PGP SIGNATURE-----
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Tue, 22 Apr 2025 13:45:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 76240 <at> debbugs.gnu.org (full text, mbox):
Sharlatan Hellseher <sharlatanus <at> gmail.com> writes:
> It good timing to check it after python-team is merged. I need to
> refresh my thoughts on this as with default NumPy swapped to 2 the whole
> Python science stack needs to be rebuild.
Alright. If you have ideas on how to fix the failing test in the
meantime, that’d be great; we shouldn’t leave failing tests in place for
this long.
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76240
; Package
guix-patches
.
(Thu, 24 Apr 2025 13:34:03 GMT)
Full text and
rfc822 format available.
Message #23 received at 76240 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Ludo,
Tests are activated and all passed without any skippings x86_64 (!!).
Pushed to master as 9801822b8b5643a56551506d04abc7fc504076de.
I've CCed other Python masters to brainstorm migration to NymPy 2+ ;-)
--
Oleg
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.