Skip to content

Conversation

@dopplershift
Copy link
Contributor

PR Summary

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. 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

  • [N/A ] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

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.
@dopplershift
Copy link
Contributor Author

I wouldn't mind this getting into 3.6, but I already have the patch working so it's not a huge deal either.

Copy link
Member

@QuLogic QuLogic left a 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.

@QuLogic QuLogic added this to the v3.6.0 milestone Sep 9, 2022
@QuLogic QuLogic added the CI: Run cibuildwheel Run wheel building tests on a PR label Sep 9, 2022
@timhoffm timhoffm merged commit 9575fac into matplotlib:main Sep 10, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 10, 2022
timhoffm pushed a commit that referenced this pull request Sep 10, 2022
@dopplershift dopplershift deleted the fix-cross-compile branch September 10, 2022 17:09
dcamron added a commit to dcamron/MetPy that referenced this pull request Sep 21, 2022
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.
dcamron added a commit to dcamron/MetPy that referenced this pull request Sep 21, 2022
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.
melissawm pushed a commit to melissawm/matplotlib that referenced this pull request Dec 19, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build CI: Run cibuildwheel Run wheel building tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants