FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[osx] adding preprocessor directives to fix include on OSX. by truthbk · Pull Request #48 · sbinet/go-python · GitHub

This repository was archived by the owner on Jul 24, 2023. It is now read-only.
/ go-python Public archive

[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 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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

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?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL