Skip to content

MacOS(Python): SWIG 4.4.0 regression #4924

@Mizux

Description

@Mizux

TLDR tracked in:

When migrating from SWIG 4.3.1 to 4.4.0 we got some issue on few tests...

cmake -S. -Bbuild -DBUILD_PYTHON=ON -DUSE_SCIP=OFF -DUSE_COINOR=OFF -DUSE_HIGHS=OFF && cmake --build build --config Release -j 4
(cd build && ctest -V -R "python.*issue46")

note: disable SCIP, Highs and Cbc support to reduce build time...

Observed:

...
677: TypeError: SWIG director type mismatch in output value of type 'operations_research::Decision *'

DevNote

src: https://github.com/google/or-tools/blob/main/examples/tests/issue46.py

PY_CONVERT_HELPER_PTR(Decision);


%feature ("director") Decision;

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions