Skip to content

Commit

Permalink
Fix sympy version for specific instance
Browse files Browse the repository at this point in the history
Fixes #265

Modify the `build_instance_image` function in `swebench/harness/docker_build.py` to check for the instance ID `sympy__sympy-21612` and install `antlr4-python3-runtime==4.7.2` if it matches.

* Add a check for the specific instance ID `sympy__sympy-21612`
* Append the installation command for `antlr4-python3-runtime==4.7.2` to the `repo_script_list` if the instance ID matches

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/swe-bench/SWE-bench/issues/265?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
SmartManoj committed Dec 10, 2024
1 parent edd590e commit 4fb61e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swebench/harness/docker_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ def build_instance_image(

# Build the instance image
if not image_exists:
# Check for specific instance ID and install specific version of antlr4-python3-runtime
if test_spec.instance_id == "sympy__sympy-21612":
test_spec.repo_script_list.append("python -m pip install antlr4-python3-runtime==4.7.2")
build_image(
image_name=image_name,
setup_scripts={
Expand Down

0 comments on commit 4fb61e1

Please sign in to comment.