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

Support PURE_PYTHON #28

Open
jamadden opened this issue Jul 20, 2021 · 0 comments
Open

Support PURE_PYTHON #28

jamadden opened this issue Jul 20, 2021 · 0 comments

Comments

@jamadden
Copy link
Member

jamadden commented Jul 20, 2021

Currently, the C extension is unconditionally imported:

try:
from ._zope_i18nmessageid_message import Message
except ImportError: # pragma: no cover
pass

This makes it difficult to test the Python implementation on CPython; you have to remove the dynamic library.

Most Zope projects that have a C extension respect a PURE_PYTHON=1 environment variable to disable importing the C extension. This project should as well.

(See #27 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant