summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2023-03-28 22:11:23 -0400
committerGitHub <noreply@github.com>2023-03-29 02:11:23 +0000
commit60d3f709eb96ba5df9bdfede5c024c1f2db9f0e5 (patch)
treef67b8625fa139cec1ab95cd5ad33910c6d1fb429
parent8158e45ee746faea3fcf43e23a339bb02145a7af (diff)
downloadcryptography-60d3f709eb96ba5df9bdfede5c024c1f2db9f0e5.tar.gz
Error cleanly in setup.py when using a too-old PyPy (#8634)
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index b3a7cf9b2..b05dc2f12 100644
--- a/setup.py
+++ b/setup.py
@@ -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(