Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
/go-pythonPublic archive

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

Open
truthbk wants to merge1 commit intosbinet:master
base:master
Choose a base branch
Loading
fromtruthbk:osx_guards

Conversation

truthbk
Copy link

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!

pombredanne reacted with thumbs up emoji
Copy link
Owner

@sbinetsbinet left a comment

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)

#include "Python.h"
#endif

#include "frameobject.h"
Copy link
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
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
Copy link
Owner

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

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

@sbinetsbinetsbinet left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@truthbk@sbinet

[8]ページ先頭

©2009-2025 Movatter.jp