Skip to content

Support PURE_PYTHON #28

@jamadden

Description

@jamadden

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))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions