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 6ca76cf commit 849a234Copy full SHA for 849a234
optbayesexpt/constants.py
@@ -7,8 +7,15 @@
7
GOT_NUMBA = False
8
if sys.version_info[0] == 3:
9
if sys.version_info[1] <= 3:
10
- if importlib.import_loader('numba') is not None:
11
- GOT_NUMBA = True
+ numba_module = importlib.import_loader('numba')
12
if sys.version_info[1] >= 4:
13
- if importlib.util.find_spec('numba') is not None:
14
+ numba_module = importlib.util.find_spec('numba')
+
+ if numba_module is not None:
15
+ GOT_NUMBA = True
16
17
+if __name__ == '__main__':
18
+ print(f'version = {version}')
19
+ print(f'GOT_NUMBA = {GOT_NUMBA}')
20
+ if GOT_NUMBA:
21
+ print(numba_module)
0 commit comments