Skip to content

Fixes for shift from python 2 C-API to python 3 C-API for new SWIG 4.5.0 Version - #585

Merged
rafaelab merged 2 commits into
CRPropa:masterfrom
JanNiklasB:Swig415Fixes
Aug 28, 2026
Merged

rafaelab merged 2 commits into
CRPropa:masterfrom
JanNiklasB:Swig415Fixes

Conversation

@JanNiklasB

Copy link
Copy Markdown
Member

Hi,

in this PR I want to introduce the fixes so we are able to use the new SWIG 4.5.0 Version (Detailed Release Notes).
I further more add the new flag -pyi to generate stub files with swig in case the swig version is at least 4.5.0, this replaces pybind in this case.
Lastly, I change the autodoc number to a more detailed version and add the -nogil and -threads flag to tell python>=3.13 that we do not need thread protection and in turn are able to utilize (hopefully) more resources.

This fixes #584 !

@rafaelab
rafaelab self-requested a review August 28, 2026 13:15
@rafaelab
rafaelab merged commit 186a69a into CRPropa:master Aug 28, 2026
11 of 12 checks passed
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.

Issues with new SWIG-4.5.0 version

2 participants