[MacPorts] #70251: py-numpy 2.0.0
MacPorts
noreply at macports.org
Sun Sep 8 19:12:04 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):
I am working on this update and will put up a PR once I've finished up a
few remaining things. NumPy v2.0.1 supports PY39, the latest upstream
version v2.1.0 supports PY310 and above.
I would propose the following:
1. keep the current version as {{{py-numpy-legacy}}}, this has to conflict
with the latest versions as Python packages cannot be installed side-by-
side.
2. list all dependents and:
- remove all subports below {{{39}}} where possible, if needed going down
the dependency chain
- if a port depends on Python < 3.9 and is deemed to be valuable and
cannot be removed, then it should depend on {{{pyXY-numpy-legacy}}}
- update all ports if a newer upstream version is available, or if not,
rebuild the port with NumPy v2.0 and enable/run the test-suite to verify
that it still works correctly. If no issues are reported by using {{{ruff
check path/to/code/ --select NPY201}}} I think we assume that things are
likely to work.
I *think* this is the only way it can work, but am open to
comments/suggestions.
I will update here with a link to the PR once that is all fixed and we can
start adding ports/updates there and once we are fairly convinced most of
the things will work, then we can merge. Additionally, once that's the
case people who are interested in older systems should verify that this
all still works and if not provide patches to make that happen if
possible. The build system has changed to {{{meson}}} and upstream is
using a vendored version with NumPy specific changes. Our {{{meson}}} port
has quite a few changes specifically intended to support older OSes, but
integrating these modified {{{meson}}} versions sounds complicated and not
something I am willing to invest time in.
--
Ticket URL: <https://trac.macports.org/ticket/70251#comment:22>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list