From 678b92e2c5e36fe896cef2262e2d9e2c5797dca8 Mon Sep 17 00:00:00 2001 From: Kilian Lieret Date: Mon, 12 Aug 2024 17:37:58 +0700 Subject: [PATCH] Pin types-pkg-resources to avoid issues with yankedness Closes #199 --- swebench/harness/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/swebench/harness/constants.py b/swebench/harness/constants.py index 6496ae51..3cf15a26 100644 --- a/swebench/harness/constants.py +++ b/swebench/harness/constants.py @@ -709,6 +709,12 @@ class TestStatus(Enum): "packages": "requirements.txt", "install": "python -m pip install -e .", "test_cmd": TEST_PYTEST, + "pre_install": [ + # See https://github.com/princeton-nlp/SWE-bench/issues/199 + # This package was sinced yanked, so we need to force pip + # to install it. + "pip install types-pkg-resources==0.1.3" + ], } for k in [ "0.10",