Skip to content

Conversation

reneeotten
Copy link
Contributor

Description

This PR updates NumPy to the latest release in the version 2 branch. This major updated was released more than a year by now and it's time to push the update to MacPorts as well. There is a list of packages that needs a rebuild to be compatible with NumPy v2; others needs an update. I have tested a reasonable number of packages and added commits for those that require work after the update of NumPy.

Please do test out this PR and then your favorite (Python) packages that depend on NumPy to verify everything still works. If a rebuild is needed and/or there is other trouble, feel free to comment in this PR so we can see whether it can be addressed before merging this PR.

I intend to merge this PR in two weeks time at the end of the month.

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS x.y
Xcode x.y / Command Line Tools x.y.z

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

@macportsbot
Copy link

Notifying maintainers:
@nilason for port py-gdal.
@michaelld for port boost, boost171, boost176, boost178, boost181, py-numpy, py-scipy.
@jasonliu-- for port openvdb.
@MarcusCalhoun-Lopez for port openvdb.
@lpsinger for port py-astropy-healpix.
@Schamschula for port py-astropy, py-imagecodecs, py-numcodecs, py-pyerfa, py-sunpy, py-vispy.
@nerdling for port py-shapely.
@joefowler for port py-pymatgen, py-spglib, py-xraydb.
@mdave for port nektarpp.
@jwhowarth for port pymol.
@mascguy for port boost, boost171, boost176, boost178, boost181, opencv4-devel, opencv4.
@stromnov for port py-bokeh, py-bottleneck, py-dask, py-geopandas, py-imageio, py-numba, py-numexpr, py-pandas, py-patsy, py-pywavelets, py-rasterio, py-scikit-image, py-scikit-learn, py-statsmodels.
@petrrr for port py-cartopy, py-gdal, py-obspy, py-xarray.
@eborisch for port py-h5py.
@jswhit for port py-netcdf4.

@ryandesign
Copy link
Contributor

Please reference https://trac.macports.org/ticket/70251 in commit messages.

@barracuda156
Copy link
Contributor

barracuda156 commented Sep 16, 2025

@reneeotten Unfortunately, numpy fails to build from this port for me.

Any idea what is going wrong?

@reneeotten
Copy link
Contributor Author

reneeotten commented Sep 16, 2025

@reneeotten Unfortunately, numpy fails to build from this port for me.

Any idea what is going wrong?

Please add a build log instead of pasting it here. The last error you posted here initially looks similar to an earlier Trac ticket you filed. Also, is this on a modern system or old OS? I need to rebuild my ports first after upgrading to Tahoe; so it might take a bit before I can try building with GCC myself.

@barracuda156
Copy link
Contributor

@reneeotten The bug with mismatching types is fixed in upstream now, and the build on PowerPC works. See: numpy/numpy#29768

- rebuild with NumPy v2
- rebuild with NumPy v2
- earlier versions do not support NumPy v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.