Skip to content

Commit

Permalink
Fix issue with Cython 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Oct 7, 2023
1 parent 2686481 commit bf5fef2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/cython_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
import traceback
import os

try:
from Cython.Compiler import Errors
Errors.init_thread() # This is needed in Cython 3.0.0 (otherwise reporting errors will throw exception).
except Exception:
pass

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# Note: Cython has some recursive structures in some classes, so, parsing only what we really
Expand Down

0 comments on commit bf5fef2

Please sign in to comment.