Skip to content

Commit

Permalink
Fix: Use swe-bench workaround for yanked pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed Oct 23, 2024
1 parent df210c0 commit a8ee3c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sweagent/environment/swe_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from simple_parsing.helpers.serialization.serializable import FrozenSerializable
from swebench.harness.constants import MAP_REPO_VERSION_TO_SPECS
from swebench.harness.utils import get_environment_yml, get_requirements
from swebench.swebench.harness.test_spec import replace_uninstallable_packages_requirements_txt

import docker
import docker.errors
Expand Down Expand Up @@ -1224,7 +1225,7 @@ def install_env(self) -> None:
)
self.logger.debug("Created conda environment")
# Write reqs to requirements.txt in docker container
content_reqs = get_requirements(self.record)
content_reqs = replace_uninstallable_packages_requirements_txt(get_requirements(self.record))
copy_file_to_container(self.container_obj, content_reqs, PATH_TO_REQS)
# Create conda environment + install reqs
self.communicate_with_handling(
Expand Down

0 comments on commit a8ee3c5

Please sign in to comment.