8000 MAINT: fix defines for universal2 python builds of NumPy by mattip · Pull Request #22169 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: fix defines for universal2 python builds of NumPy #22169

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

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

mattip
Copy link
Member
@mattip mattip commented Aug 23, 2022

When using a universal2 python (one that supports both x86-64 and arm64), there is confusion around the size of long double. On x86-64 it is 16 bytes, on arm64 it is 8 bytes. This confuses the automatic detection done in setup.py which uses heuristics to determine the size in creating the build-only configure.h header file. PR #20270 already overrides some of the affected macros, this PR adds in a few more used in the dragon4.c routines. It also adds a hint to configure.h for the next time I need to debug this.

I tried this out on the xcode-provided universal2 python3.8. See also the comments where I slowly figured this out.

@rgommers rgommers added this to the 1.24.0 release milestone Aug 24, 2022
Copy link
Member
@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mattip.

Fine to ignore the i386/powerpc branches here, they're not really supported anymore.

@rgommers rgommers merged commit 50a74fb into numpy:main Aug 24, 2022
@mattip mattip deleted the universal2-python 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.

2 participants
0