Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

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

Open
truthbk wants to merge 1 commit into
sbinet:masterfrom
truthbk:osx_guards
Open

[osx] adding preprocessor directives to fix include on OSX.#48
truthbk wants to merge 1 commit into
sbinet:masterfrom
truthbk:osx_guards

Conversation

@truthbk

@truthbk truthbk commented Dec 29, 2016

Copy link
Copy Markdown

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!

@sbinet sbinet left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this.
one question though... (see below)

Comment thread go-python.h
#include "Python.h"
#endif

#include "frameobject.h"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't all the other "internal" python-related headers be picked up from under "Python/..." as well?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is totally correct... I will update the PR.

@sbinet

sbinet commented Jan 10, 2017

Copy link
Copy Markdown
Owner

perhaps this could be better handled w/ pkg-config, like in #28 (comment) ?
could you give it a spin?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants