We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25d03c commit fd39d60Copy full SHA for fd39d60
chia/__init__.py
@@ -1,6 +1,7 @@
1
from __future__ import annotations
2
3
import importlib.metadata
4
+import sys
5
6
__version__: str
7
try:
@@ -15,3 +16,6 @@
15
16
pass
17
else:
18
raise Exception("asserts are not working and _must_ be enabled, do not run with an optimized build of python")
19
+
20
+if not getattr(sys, "_is_gil_enabled", lambda: True)():
21
+ raise Exception("freethreading is not supported, do not run with a freethreaded build of python")
0 commit comments