Skip to content

Commit

Permalink
Respect PURE_PYTHON environment variable set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
perrinjerome committed Sep 30, 2024
1 parent 1b6affb commit 8f59830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
7.3 (unreleased)
----------------

- Respect ``PURE_PYTHON`` environment variable set to ``0``.


7.2 (2024-09-17)
----------------
Expand Down
2 changes: 1 addition & 1 deletion src/zope/security/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8f59830

Please sign in to comment.