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

Skip test_embeddable if compiler cannot be initialized #8686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radarhere
Copy link
Member

It turns out that when test_embeddable was marked as passing in Python 3.13 in #8683, there was an error when using Windows x86 or AMD64 after building the wheels - https://github.com/python-pillow/Pillow/actions/runs/12721987647/job/35465533303#step:7:25500

distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"

Because this problem may occur in a local setup when running the test suite, this PR initializes the compiler (as seen two steps earlier in the error traceback) separately, and if that throws an error, before anything Pillow-related occurs, then the test is skipped.

With this change, the wheels start passing - https://github.com/radarhere/Pillow/actions/runs/12722505250/job/35466599838

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.

1 participant