Skip to content

Commit e5f7f0b

Browse files
committed
[Python] Use greenlet's pre-release
[greenlet]'s stable release doesn't work with Python 3.11. There's a chance support will be [backported], but until either that happens or the pre-release is promoted to a stable release, the pre-release needs to be installed under 3.11. Without it, bpython can't be installed. [backported]: python-greenlet/greenlet#306 [greenlet]: python-greenlet/greenlet#295 (comment)
1 parent 88dd927 commit e5f7f0b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.config/yadm/bootstrap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ if command -v asdf >/dev/null 2>&1; then
2323

2424
echo "Installing Python libraries."
2525
python -m pip install --upgrade pip >/dev/null
26+
if [[ $(python --version) =~ "3.11"* ]]; then
27+
# The current release of greenlet isn't compatible with Python 3.11.
28+
# Fortunately the latest pre-release is.
29+
pip install --pre greenlet
30+
fi
2631
pip install black bpython flake8 flake8_bugbear isort mypy pre-commit pudb pynvim virtualfish >/dev/null
2732

2833
echo "Installing Rust libraries."

0 commit comments

Comments
 (0)