GNU bug report logs - #76240
[PATCH] gnu: Add NumPy 2 related variants.

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Wed, 12 Feb 2025 20:59:01 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Cc: Tanguy Le Carrour <tanguy <at> bioneland.org>, Munyoki Kilyungi <me <at> bonfacemunyoki.com>, Lars-Dominik Braun <lars <at> 6xq.net>, 76240 <at> debbugs.gnu.org, jgart <jgart <at> dismail.de>, Marius Bakke <marius <at> gnu.org>
Subject: [bug#76240] [PATCH] gnu: Add NumPy 2 related variants.
Date: Fri, 14 Feb 2025 13:59:47 +0100
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’.




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.