diff --git a/setup.py b/setup.py index 8cfc9c97..870de2d1 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,8 @@ 'unable to read the version from immutables/_version.py') -if platform.python_implementation() == 'CPython': +if (platform.python_implementation() == 'CPython' and + os.environ.get('IMMUTABLES_EXT', '1') == '1'): if os.environ.get("DEBUG_IMMUTABLES") == '1': define_macros = [] undef_macros = ['NDEBUG']