10000 Guard Cython-tempita import under WASM · scikit-learn/scikit-learn@3b30e89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b30e89

Browse files
Guard Cython-tempita import under WASM
1 parent ee3228e commit 3b30e89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sklearn/_build_utils/tempita.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
import argparse
55
import os
66

7-
from Cython import Tempita as tempita
7+
from sklearn.utils.fixes import _IS_WASM
8+
9+
if not _IS_WASM:
10+
from Cython import Tempita as tempita
811

912
# XXX: If this import ever fails (does it really?), vendor either
1013
# cython.tempita or numpy/npy_tempita.

0 commit comments

Comments
 (0)
0