File plplot-5.15.0-swig-4.4.patch of Package plplot
diff -up plplot-5.15.0/bindings/python/plplotc.i.swig44 plplot-5.15.0/bindings/python/plplotc.i
--- plplot-5.15.0/bindings/python/plplotc.i.swig44 2025-10-15 12:01:00.439003625 +0200
+++ plplot-5.15.0/bindings/python/plplotc.i 2025-10-15 12:05:29.562703571 +0200
@@ -80,7 +80,13 @@ typedef PLINT PLBOOL;
// We have to get import_array called in our extension before we can use Numeric
%init
%{
+#if SWIG_VERSION >= 0x040400 // SWIG >= 4.4.0
+ // TODO: plplot should return -1 on failure here
+ // swig uses a function here ...
+ import_array1(-1);
+#else
import_array();
+#endif
%}
// I hate global variables but this is the best way I can think of to manage consistency