[MacPorts] #70251: py-numpy 2.0.0

MacPorts noreply at macports.org
Tue Nov 26 04:18:33 UTC 2024


#70251: py-numpy 2.0.0
-------------------------------------------------+-------------------------
  Reporter:  Schamschula                         |      Owner:  michaelld
      Type:  defect                              |     Status:  assigned
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:
Resolution:                                      |   Keywords:
      Port:  py-astropy py-cartopy py-           |
  matplotlib py-numpy py-pyerfa py-sunpy py-     |
  tifffile py-tropycal py-vispy                  |
-------------------------------------------------+-------------------------

Comment (by reneeotten):

 Replying to [comment:35 Schamschula]:
 > I've just upgraded to {{{numpy 2.1.3}}} on my main build machine.
 Remember {{{numpy >= 2.0.0}}} is supposed to be backwardly compatible.

 No, [https://github.com/numpy/numpy/releases/tag/v2.0.0 it is not]:
 {{{
 This major release includes breaking changes that could not happen in a
 regular minor (feature) release - including an ABI break, changes to
 type promotion rules, and API changes which may not have been emitting
 deprecation warnings in 1.26.x. Key documents related to how to adapt to
 changes in NumPy 2.0, in addition to these release notes, include:
 ....
 }}}

 You are right that building with NumPy v2 will result in packages that
 still work with NumPy v1 - but that is irrelevant for MacPorts as we will
 never provide both versions. What needs to be checked is that -especially
 older- packages do not rely on changes in NumPy’s Python and C APIs. One
 way to do that is checking source code with: {{{$ ruff check path/to/code/
 --select NPY201}}}.

 A compatibility table is [https://github.com/numpy/numpy/issues/26191
 here], which would help to triage what needs to be done for MacPorts.

-- 
Ticket URL: <https://trac.macports.org/ticket/70251#comment:36>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list