Skip to content
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

python@3.9: find gdbm on ARM #66438

Merged
merged 1 commit into from
Dec 8, 2020
Merged

python@3.9: find gdbm on ARM #66438

merged 1 commit into from
Dec 8, 2020

Conversation

fxcoudert
Copy link
Member

Without this patch, python does not find gdbm.

Yes, I know superenv should take care of this, but python does not play too well with that. But due to the code at https://github.com/python/cpython/blob/29afab6c5f656f07ac85c9b2cf089631b2557a11/setup.py#L784 the python setup code actually records the directories passed as -I and -L options in CFLAGS and LDFLAGS. So we use those to allow detection of gdbm, and possibly other things.

Why did it work on Intel? Because Python adds /usr/local/{include,lib} to its search paths anyway. But on ARM, we're not in those paths.

@fxcoudert
Copy link
Member Author

I won't let the tests proceed to the end, I just want to check that this builds on all three macOS versions. I'll kill the tests, and merge without bottles.

@fxcoudert fxcoudert merged commit c6a122a into Homebrew:master Dec 8, 2020
@fxcoudert fxcoudert deleted the pyarm branch December 8, 2020 06:46
@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Jan 7, 2021
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Jan 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants