diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2023-03-28 22:11:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-29 02:11:23 +0000 |
| commit | 60d3f709eb96ba5df9bdfede5c024c1f2db9f0e5 (patch) | |
| tree | f67b8625fa139cec1ab95cd5ad33910c6d1fb429 | |
| parent | 8158e45ee746faea3fcf43e23a339bb02145a7af (diff) | |
| download | cryptography-60d3f709eb96ba5df9bdfede5c024c1f2db9f0e5.tar.gz | |
Error cleanly in setup.py when using a too-old PyPy (#8634)
| -rw-r--r-- | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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( |
