From 408c90d3ae2be1cf3f2a7f7fd54c1952f6efb666 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 24 Dec 2023 10:41:16 +0100 Subject: [PATCH] Python stuff: fix an issue to build pcbnew_wrap.cxx (at least on msys2) - Reorder two include in pcbnew.i - rename PLUGIN to PCB_IO (missing rename) in footprint.i --- pcbnew/python/swig/footprint.i | 3 ++- pcbnew/python/swig/pcbnew.i | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pcbnew/python/swig/footprint.i b/pcbnew/python/swig/footprint.i index db646c6e37..ae726e758e 100644 --- a/pcbnew/python/swig/footprint.i +++ b/pcbnew/python/swig/footprint.i @@ -101,7 +101,8 @@ %} } -%extend PLUGIN + +%extend PCB_IO { // This version of FootprintEnumerate is for Python scripts, because the c++ // version of FootprintEnumerate is not easy to handle in these Python scripts diff --git a/pcbnew/python/swig/pcbnew.i b/pcbnew/python/swig/pcbnew.i index 72b6c64759..e200c5b303 100644 --- a/pcbnew/python/swig/pcbnew.i +++ b/pcbnew/python/swig/pcbnew.i @@ -76,6 +76,8 @@ class BASE_SET {}; #include #include #include +#include +#include BOARD *GetBoard(); /* get current editor board */ wxArrayString GetFootprintLibraries(); @@ -84,16 +86,10 @@ wxArrayString GetFootprints(const wxString& aNickName); %include -%{ -#include -%} // ignore RELEASER as nested classes are still unsupported by swig %ignore IO_MGR::RELEASER; %include -%{ -#include -%} /*