Only accept missing tkinter when building wheels on Windows (#8981)

This commit is contained in:
Andrew Murray 2025-06-10 16:00:08 +10:00 committed by GitHub
parent 7b163cc35d
commit 6bd55684e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ from .helper import is_pypy
def test_wheel_modules() -> None:
expected_modules = {"pil", "tkinter", "freetype2", "littlecms2", "webp"}
if sys.platform == "win32":
# tkinter is not available in cibuildwheel installed CPython on Windows
try:
import tkinter