ICRAR / ijson

Iterative JSON parser with Pythonic interfaces
http://pypi.python.org/pypi/ijson/
Other
849 stars 51 forks source link

Add an environment variable to control building yajl2_c #102

Closed mgorny closed 1 year ago

mgorny commented 1 year ago

Add a IJSON_BUILD_YAJL environment variable to make it possible to override whether yajl2_c is being built. The default is to build it if either yajl2 is found or embedding is enabled. However, the envvar can be used to either force building (i.e. effectively make the build fail if yajl2 is not detected) or disable building it even if yajl2 is installed.

The primary use case is to make it possible to disable building the extension for PyPy3 where it is currently known to be broken.

rtobar commented 1 year ago

Thanks @mgorny! If this is enough for your packaging needs then it might be a good time to tag a new ijson version, please let me know.

mgorny commented 1 year ago

Thanks. Yes, a new release would be helpful, since presumably the PyPy problem needs to be solved on PyPy end.