Skip to content

numpy.i incompatible with swig >= 4.3 #52

Description

@haampie

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions