swig 4.3.0 changed SWIG_Python_AppendOutput from a 2-arg to a 3-arg function (swig/swig@cd39cf13). The vendored tools/swig/numpy.i in this repo still uses the old 2-arg form, so +python builds fail against swig 4.3+.
NumPy fixed the same issue in their copy of numpy.i by replacing SWIG_Python_AppendOutput with SWIG_AppendOutput (a wrapper that handles the third argument internally): numpy/numpy#27593.
The fix would be to sync tools/swig/numpy.i with the current NumPy version.
In the meantime, the Spack package for libpressio has been capped at swig@:4.2 for +python builds: spack/spack-packages#3714.
swig 4.3.0 changed
SWIG_Python_AppendOutputfrom a 2-arg to a 3-arg function (swig/swig@cd39cf13). The vendoredtools/swig/numpy.iin this repo still uses the old 2-arg form, so+pythonbuilds fail against swig 4.3+.NumPy fixed the same issue in their copy of numpy.i by replacing
SWIG_Python_AppendOutputwithSWIG_AppendOutput(a wrapper that handles the third argument internally): numpy/numpy#27593.The fix would be to sync
tools/swig/numpy.iwith the current NumPy version.In the meantime, the Spack package for libpressio has been capped at
swig@:4.2for+pythonbuilds: spack/spack-packages#3714.