Skip to content

bpo-37763: Teach setup.py to pick up "-isystem <dir>" from $CPPFLAGS #15136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jherland
Copy link

@jherland jherland commented Aug 5, 2019

When (cross-)compiling, setup.py will pick up header search dirs from
$CPPFLAGS and lib search dirs from $LDFLAGS. However, the code only
looks at the -I options in $CPPFLAGS to find header search dirs.

Using the -isystem option (instead of -I) to pass header search dirs is
also a valid option, but this is currently unsupported by setup.py.

This patch adds handling of -isystem options, so that these are picked
up the same way that -I options currently are.

https://bugs.python.org/issue37763

When (cross-)compiling, setup.py will pick up header search dirs from
$CPPFLAGS and lib search dirs from $LDFLAGS. However, the code only
looks at the -I options in $CPPFLAGS to find header search dirs.

Using the -isystem option (instead of -I) to pass header search dirs is
also a valid option, but this is currently unsupported by setup.py.

This patch adds handling of -isystem options, so that these are picked
up the same way that -I options currently are.
@erlend-aasland
Copy link
Contributor

Thanks for you PR. setup.py is no longer part of the code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants