From 6136de78c27e74c3233ad0f770a0f7901fb59c6e Mon Sep 17 00:00:00 2001 From: SoulMelody Date: Sun, 29 Sep 2024 10:56:33 +0800 Subject: [PATCH] override environment variables --- packaging/mingw_install.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", ]: