go-python icon indicating copy to clipboard operation
go-python copied to clipboard

[osx] adding preprocessor directives to fix include on OSX.

Open truthbk opened this issue 9 years ago • 1 comments

I was having issues building on OSX.

Python is provided as a framework by Xcode, and has to be included as #include "Python/Python.h" as opposed to the expected in #include "Python.h" in other environments (ie. Linux). I think this is probably better than messing with the include paths.

The provided fix did it for me.

Thanks!

truthbk avatar Dec 29 '16 13:12 truthbk

perhaps this could be better handled w/ pkg-config, like in https://github.com/sbinet/go-python/issues/28#issuecomment-271474499 ? could you give it a spin?

sbinet avatar Jan 10 '17 08:01 sbinet