Created
July 3, 2025 14:46
-
-
Save jevinskie/39986e135f5cea8896be07c3a09a2a5f to your computer and use it in GitHub Desktop.
git bisect for finding a change in bytecode behavior in CPython
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -xeuo pipefail | |
echo "=== GIT STATUS ===" | |
git status | |
git clean -fdx &> /dev/null | |
rm -rf ~/base/python-dumb/* | |
./configure --enable-shared --disable-test-modules --prefix=$HOME/base/python-dumb || exit 125 | |
make -j $(nproc) || exit 125 | |
make -j $(nproc) install || exit 125 | |
PYTHONPATH=$HOME/code/python/git/typing_extensions/src:$HOME/code/python/pytypes/monkeytype ~/base/python-dumb/bin/python3 ~/code/python/pytypes/monkeytype/tests/test_tracing_lite.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment