Skip to content

Use SWIG differently, so we have a single Python binary instead of one per Python version. - #1401

Merged
luciansmith merged 13 commits into
developfrom
single-python-binary
Oct 30, 2026
Merged

luciansmith merged 13 commits into
developfrom
single-python-binary

Conversation

@luciansmith

Copy link
Copy Markdown

We have to change how we create NamedArrays and also (I think) change how we use SWIG.

…sion.

We have to start by moving our creation of NamedArray to python instead of C++.
This is the big moment, when we can see if we indeed don't need four binaries all the time.  Lots of tests added and CI restructured so that we build on Python 3.10, then test there and on the most recent versions of python.

Also test numpy version 1.21.3, 2.2.x, and 3.x, which should, in theory, all work.
Also just require SWIG 4.4.1 or later everywhere.
Works fine on mac/windows, but linux was crashing sometimes.  Probably due to multiple loads of the library?
Can happen when both roadrunner and rrplugins are present.
@luciansmith
luciansmith merged commit b0c9ca1 into develop Oct 30, 2026
26 of 32 checks passed
@luciansmith
luciansmith deleted the single-python-binary branch October 30, 2026 18:28
@luciansmith

Copy link
Copy Markdown
Author

This all works!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant