From 8f59830d433df5d46b91b981402616d652343ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= Date: Mon, 30 Sep 2024 05:51:20 +0000 Subject: [PATCH] Respect `PURE_PYTHON` environment variable set to `0` --- CHANGES.rst | 2 ++ src/zope/security/_compat.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5d7763f..34df35a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ 7.3 (unreleased) ---------------- +- Respect ``PURE_PYTHON`` environment variable set to ``0``. + 7.2 (2024-09-17) ---------------- diff --git a/src/zope/security/_compat.py b/src/zope/security/_compat.py index 0d95d9f..c1b9c0e 100644 --- a/src/zope/security/_compat.py +++ b/src/zope/security/_compat.py @@ -19,7 +19,7 @@ py_impl = getattr(platform, 'python_implementation', lambda: None) PYPY = py_impl() == 'PyPy' -PURE_PYTHON = os.environ.get('PURE_PYTHON', PYPY) +PURE_PYTHON = int(os.environ.get('PURE_PYTHON', PYPY)) class implementer_if_needed: