Files

16 lines
679 B
Python

"""Build-time DLL policy for the Windows PySide6 6.11 wheel.
Qt imports unversioned ICU symbols from the Windows OS ICU implementation.
A version-suffixed ICU accidentally picked from Poppler on the build PATH
causes WinError 127 even though every Qt DLL has the correct version.
Do not bundle an unrelated ICU provider; use the Windows OS dependency.
"""
from pathlib import PureWindowsPath
def filter_binaries(entries):
def allowed(entry):
name = PureWindowsPath(entry[0]).name.casefold()
return name not in {"icuuc.dll", "icuin.dll"} and not (name.startswith("icudt") and name.endswith(".dll"))
return [entry for entry in entries if allowed(entry)]