-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix freetype wheel building #21279
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
Fix freetype wheel building #21279
Conversation
Using just `CC` from the `distutils` compiler can break universal2 wheels on macOS, but passing all compiler and linker settings appears to work. Plus grabbing this information from `sysconfig` is better than hacking the `distutils` compiler into working.
PyPy doesn't have a host type, so don't pass `--host` in that case, and hope it is correct (which has been how it was since forever anyway.)
0db0e86
to
81730f7
Compare
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove If these instruction are inaccurate, feel free to suggest an improvement. |
Fix freetype wheel building
Fix freetype wheel building
Fix freetype wheel building
PR Summary
The changes in #21263 caused wheel builds to fail, which we didn't see because they aren't run on pull requests. I've made sure that wheel CI passes this time.
The problem is that setting
CC
only is incomplete, and we need to set the linker, etc. It is better to grab that fromsysconfig
rather than messing around with thedistutils
compiler that I originally did. Also, fix build on PyPy as well.PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).