micro-manager / pymmcore

Python bindings for MMCore, Micro-Manager's device control layer
https://pypi.org/project/pymmcore/
GNU Lesser General Public License v2.1
32 stars 8 forks source link

Set include path in build script, not source #95

Closed marktsuchida closed 8 months ago

marktsuchida commented 8 months ago

Before this change, SWIG would pick up MMCore/MMDevice headers from an mmCoreAndDevices directory outside of the pymmcore directory, if present. This is because SWIG's search path for %include contains the current directory before any directories given by -I flags (so %include "../mmCoreAndDevices/..." was problematic).

Includes by the compiler (#include) may not have this problem but let's use the same method.