Error cleanly in setup.py when using a too-old PyPy (#8634)

This commit is contained in:
Alex Gaynor 2023-03-28 22:11:23 -04:00 committed by GitHub
parent 8158e45ee7
commit 60d3f709eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,9 @@ src_dir = os.path.join(base_dir, "src")
# means that we need to add the src/ directory to the sys.path.
sys.path.insert(0, src_dir)
if hasattr(sys, "pypy_version_info") and sys.pypy_version_info < (7, 3, 10):
raise RuntimeError("cryptography is not compatible with PyPy3 < 7.3.10")
try:
# See pyproject.toml for most of the config metadata.
setup(