-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix cross-compiling internal freetype #23852
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
Conversation
Instead of passing BUILD_GNU_TYPE as the host, it should be HOST_GNU_TYPE. This fixes cross-compilation for osx_arm64 on conda-forge.
I wouldn't mind this getting into 3.6, but I already have the patch working so it's not a huge deal either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct. I don't think I had any reason to pick BUILD_GNU_TYPE
over HOST_GNU_TYPE
; I think it was just the first one to pop out to me as useful from sysconfig.get_config_vars
.
From the original commit 76f1516, you can see I never was able to properly test this given where we thought it would have an effect.
Co-authored-by: Ryan May <[email protected]>
With matplotlib/matplotlib#23852 and conda-forge/matplotlib-feedstock#329, we can now run image tests on osx-arm64 platforms with a testing install of Matplotlib. There are some artifacts across architecture. Burying these in test tolerance allows tests to pass in a fully osx-arm64 environment. Ideally to be reduced in the future.
With matplotlib/matplotlib#23852 and conda-forge/matplotlib-feedstock#329, we can now run image tests on osx-arm64 platforms with a testing install of Matplotlib. There are some artifacts across architecture. Burying these in test tolerance allows tests to pass in a fully osx-arm64 environment. Ideally to be reduced in the future.
Instead of passing BUILD_GNU_TYPE as the host, it should be HOST_GNU_TYPE. This fixes cross-compilation for osx_arm64 on conda-forge.
PR Summary
Instead of passing
BUILD_GNU_TYPE
as the host, it should beHOST_GNU_TYPE
. This fixes cross-compilation for osx_arm64 on conda-forge. See conda-forge/matplotlib-feedstock#329.I wasn't able to find any quick documentation for these keys, but this discussion post is what clued me in. @QuLogic did you have something else that led you to use
BUILD_GNU_TYPE
when you added it originally?PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).