Skip to content

Conversation

@mattip
Copy link
Member

@mattip mattip commented Jul 20, 2022

I ran across this when using a ubuntu-system python with numpy installed. Since there are numpy include headers in sysconfig.get_config_var('INCLUDEPY'), putting it first means the tests use that set of headers and not the ones from the test environment.

@seberg
Copy link
Member

seberg commented Jul 20, 2022

Oh, makes sense to me and will merge in a bit if nobody sees an issue. I had a similar annoyance on debian and ended up just deleting the system headers (I think they are copied to a second unnecessary place).
This sounds like it is always safe and just avoids any bad headers flying around.

@seberg seberg merged commit 45bc13e into numpy:main Jul 22, 2022
@seberg
Copy link
Member

seberg commented Jul 22, 2022

Thanks Matti, hopefully this will remove such annoyances!

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jul 25, 2022
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 3, 2022
@mattip mattip deleted the include-order branch December 27, 2022 16:50
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.

3 participants