Bug 1857766 - Consider providing numpy from python3-numpy
Summary: Consider providing numpy from python3-numpy
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: numpy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-16 14:20 UTC by Miro Hrončok
Modified: 2020-07-16 15:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-16 15:24:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-07-16 14:20:14 UTC
When we introduced python2-numpy bz1734445, there was this brief discussion:

Me:

>    Provides:       numpy = %{epoch}:%{version}-%{release}
>    Provides:       numpy%{?_isa} = %{epoch}:%{version}-%{release}
>    Provides:       f2py = %{epoch}:%{version}-%{release}
>    Provides:       numpy-f2py = %{epoch}:%{version}-%{release}
> 
> I believe those should now be in the Python 3 package: https://fedoraproject.org/wiki/Changes/Python_means_Python3

Gwyn:

> I think the numpy Provides should follow python2-numpy, as the python3- naming is compliant and that isn't. It also minimizes breakage for users if dependent packages have bad Requires on numpy.

Me:

BTW I don't agree but won't block this review on that.





Would you re-consider moving the provides to python3-numpy for Fedora 33+?
python2-numpy as a separate package existed now for 2 releases. There are packages that BuildRequire numpy:

$ repoquery --repo=rawhide{,-source} --whatrequires numpy --exact
kiss-fft-0:1.3.0-10.fc32.src
qcint-0:3.0.20-2.fc33.src
quantum-espresso-0:6.5-1.fc33.src


I would fix them in the process.

Comment 1 Gwyn Ciesla 2020-07-16 14:39:49 UTC
I'm not categorically opposed, but I'm curious what we gain by moving them. What's the advantage of this over simply fixing the 3 packages that use the old-style non-compliant names and eliminating these provides? If there is one I can certainly do this, I'm just unsure of the benefit.

Comment 2 Miro Hrončok 2020-07-16 14:48:27 UTC
The benefit is for the end users who might do: dnf install numpy

Currently, they get the numpy for an upstream unsupported Python version, possibly also pulling the python2.7 package in.

Comment 3 Gwyn Ciesla 2020-07-16 14:54:52 UTC
Fair enough. Should I do this immediately or do you want to coordinate?

Comment 4 Miro Hrončok 2020-07-16 14:57:43 UTC
I'll submit PRs to kiss-fft, qcint, quantum-espresso.

I can also make the necessary changes in numpy and python2-numpy myself, directly or via a Pull Request, but feel free to do it yourself, if you prefer that.

Comment 5 Gwyn Ciesla 2020-07-16 15:00:10 UTC
I've got them staged, so I'll just do it now then.

Comment 7 Miro Hrončok 2020-07-16 15:05:19 UTC
https://src.fedoraproject.org/rpms/numpy/c/0a40ade4bb52f0a9ca3d4bc1436d02eb93ac318b?branch=master

I'm not sure about the obsoletes. The package will replace the older python2-numpy package which is probably not desired.

Comment 8 Miro Hrončok 2020-07-16 15:06:14 UTC
Scratch that, the older python2-numpy package has higher version. Sorry for writing without thinking.

Comment 9 Gwyn Ciesla 2020-07-16 15:09:36 UTC
I wish I had a dollar for every time I've done that. :)

Comment 10 Gwyn Ciesla 2020-07-16 15:24:43 UTC
Builds complete.

Comment 11 Miro Hrončok 2020-07-16 15:31:24 UTC
Thank you, Gwyn!


Note You need to log in before you can comment on or make changes to this bug.