diff --git a/codex_setup.sh b/codex_setup.sh index f169a7b1f693..85c7b93e8979 100755 --- a/codex_setup.sh +++ b/codex_setup.sh @@ -9,10 +9,6 @@ COMMIT=$(grep -oE '[0-9a-f]{40}' <<< "$NIGHTLY_PATCH" | head -1) COMMIT_DATE=$(echo "$NIGHTLY_PATCH" | grep '^Date:' | sed -E 's/Date: .*, ([0-9]+) ([A-Za-z]+) ([0-9]+) .*/\3 \2 \1/' | awk 'BEGIN{split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", months, " "); for(i=1;i<=12;i++) month[months[i]]=sprintf("%02d",i)} {print $1 month[$2] sprintf("%02d",$3)}') VERSION_STRING="2.9.0.dev${COMMIT_DATE}+cpu" git rev-parse HEAD > /tmp/orig_work.txt -cp AGENTS.md /tmp git reset --hard $COMMIT -cp /tmp/AGENTS.md . -curl https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/159965.diff | patch -p1 USE_NIGHTLY=$VERSION_STRING python setup.py develop -git commit -asm "Agents patch" echo "source $PWD/.venv/bin/activate" >> ~/.bashrc