setup_default.sh 939 B

12345678910111213141516171819
  1. #!/bin/bash
  2. export PIP_CACHE_DIR=$HOME/.cache/pip
  3. pip install flake8
  4. # Default Mode from SWE-Bench
  5. # https://github.com/princeton-nlp/SWE-agent/blob/ca54d5556b9db4f4f2be21f09530ce69a72c0305/config/configs/default_sys-env_window100-detailed_cmd_format-last_5_history-1_demos.yaml#L103-L106
  6. echo 'source /opendevin/plugins/swe_agent_commands/_setup_default_env.sh' >> ~/.bashrc
  7. # make _split_string (py) available
  8. echo 'export PATH=$PATH:/opendevin/plugins/swe_agent_commands' >> ~/.bashrc
  9. echo 'source /opendevin/plugins/swe_agent_commands/defaults.sh' >> ~/.bashrc
  10. echo 'source /opendevin/plugins/swe_agent_commands/search.sh' >> ~/.bashrc
  11. echo 'source /opendevin/plugins/swe_agent_commands/edit_linting.sh' >> ~/.bashrc
  12. echo 'export SWE_CMD_WORK_DIR="/opendevin/plugins/swe_agent_commands/workdir"' >> ~/.bashrc
  13. sudo mkdir -p /opendevin/plugins/swe_agent_commands/workdir
  14. sudo chmod 777 /opendevin/plugins/swe_agent_commands/workdir