Skip to content

Conversation

@ilevkivskyi
Copy link
Member

Fixes mypyc/librt#21

Fail with an explicit user-friendly error on PyPy.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 284ba55 into python:master Dec 9, 2025
23 checks passed
@ilevkivskyi ilevkivskyi deleted the fail-explicit-pypy branch December 9, 2025 14:08
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure error in setup.py is the best, since PyPy will presumably pull the pure Python wheel. Maybe we should import librt in main at runtime and error if it fails

@ilevkivskyi
Copy link
Member Author

Oh, hm, TBH I don't know how PyPy works, but yeah, that may be more robust. I think we don't even need to try importing librt, simply fail unconditionally in main on PyPy.

@ilevkivskyi
Copy link
Member Author

Follow up in #20389

ilevkivskyi added a commit that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.7.0 does not install with pypy 3.10 or 3.11

2 participants