Skip to content

Fix PyPy dependency marker - #280

Open
doe1080 wants to merge 1 commit into
python-cffi:mainfrom
doe1080:fix-pypy-marker
Open

doe1080 wants to merge 1 commit into
python-cffi:mainfrom
doe1080:fix-pypy-marker

Conversation

@doe1080

@doe1080 doe1080 commented Sep 23, 2026

Copy link
Copy Markdown

implementation_name maps to sys.implementation.name, whose value is guaranteed to be lowercase, so the marker should use pypy

https://packaging.python.org/en/latest/specifications/dependency-specifiers/#defined-environment-marker-fields
https://docs.python.org/3/library/sys.html#sys.implementation

@mattip

mattip commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

PyPy ships its own version of cffi which cannot be replaced by one from pip at all. I wonder if there is a way to error out entirely if the pyproject.toml is ever run on PyPy.

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.

2 participants