From 24838ba9017b341a947328fabcd36904d7b075c8 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Fri, 31 Dec 2021 18:02:30 -0600 Subject: [PATCH] Avoid grep on Windows --- misc/build_wheel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/build_wheel.py b/misc/build_wheel.py index b124a11d8c95..188660e2eefc 100644 --- a/misc/build_wheel.py +++ b/misc/build_wheel.py @@ -83,6 +83,8 @@ def create_environ(python_version: str) -> Dict[str, str]: && pip install -r /tmp/test-requirements.txt ) """.replace('\n', ' ') + # lxml currently has wheels on Windows and doesn't have grep, so special case + env['CIBW_BEFORE_TEST_WINDOWS'] = "pip install -r {project}/mypy/test-requirements.txt" # pytest looks for configuration files in the parent directories of where the tests live. # since we are trying to run the tests from their installed location, we copy those into