Skip to content

Commit

Permalink
Release 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
john-b-yang committed Nov 17, 2024
1 parent d4128f2 commit b31927c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion swebench/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.1.2"
__version__ = "2.1.3"

from swebench.collect.build_dataset import main as build_dataset
from swebench.collect.get_tasks_pipeline import main as get_tasks_pipeline
Expand Down
9 changes: 6 additions & 3 deletions swebench/harness/dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
&& rm -rf /var/lib/apt/lists/*
# Download and install conda
RUN wget 'https://repo.anaconda.com/miniconda/Miniconda3-py311_23.11.0-2-Linux-{conda_arch}.sh' -O miniconda.sh \
RUN wget 'https://repo.anaconda.com/miniconda/Miniconda3-{conda_version}-Linux-{conda_arch}.sh' -O miniconda.sh \
&& bash miniconda.sh -b -p /opt/miniconda3
# Add conda to PATH
ENV PATH=/opt/miniconda3/bin:$PATH
Expand Down Expand Up @@ -54,12 +54,15 @@
"""


def get_dockerfile_base(platform, arch):
def get_dockerfile_base(platform, arch, conda_version=None):
if arch == "arm64":
conda_arch = "aarch64"
else:
conda_arch = arch
return _DOCKERFILE_BASE.format(platform=platform, conda_arch=conda_arch)
if conda_version == None:
# Default conda version (from initial SWE-bench release)
conda_version = "py311_23.11.0-2"
return _DOCKERFILE_BASE.format(platform=platform, conda_arch=conda_arch, conda_version=conda_version)


def get_dockerfile_env(platform, arch):
Expand Down

0 comments on commit b31927c

Please sign in to comment.