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 cbb23c4 commit 62c4a3b
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 @@
6.1 (unreleased)
================

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


6.0 (2024-09-17)
================
Expand Down
2 changes: 1 addition & 1 deletion src/zope/proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def py_removeAllProxies(obj):


_c_available = False
if 'PURE_PYTHON' not in os.environ:
if not int(os.environ.get('PURE_PYTHON', '0')):
try: # pragma: no cover
from zope.proxy._zope_proxy_proxy import ProxyBase as _c_available
except ImportError:
Expand Down

0 comments on commit 62c4a3b

Please sign in to comment.