Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect PURE_PYTHON environment variable set to 0 #71

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading