diff --git a/packaging/mingw_install.py b/packaging/mingw_install.py index 77eb3999b..9931f34b7 100644 --- a/packaging/mingw_install.py +++ b/packaging/mingw_install.py @@ -106,7 +106,11 @@ def install_msys2_requirements(args: list[str]) -> None: except InvalidRequirement: continue if ( - requirement.marker is None or requirement.marker.evaluate() is True + requirement.marker is None + or requirement.marker.evaluate( + environment={"platform_system": "Windows", "sys_platform": "win32"} + ) + is True ) and requirement.name not in [ "libresvip", ]: