Skip to content

Commit 74286eb

Browse files
committed
Do not import non-existent packages for pyodide
1 parent 1e55903 commit 74286eb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ dev = [
6060
]
6161
test = [
6262
"pytest",
63-
#"psutil",
64-
"torch",
63+
"psutil; platform_machine != 'wasm32'",
64+
"torch; platform_machine != 'wasm32'",
6565
]
6666
doc = [
6767
"sphinx>=8",

src/blosc2/lazyexpr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from blosc2.info import InfoReporter
3939
from blosc2.ndarray import _check_allowed_dtypes, get_chunks_idx, is_inside_new_expr
4040

41-
# Import numexpr only if not running in WebAssembly
4241
if not blosc2.IS_WASM:
4342
import numexpr
4443

0 commit comments

Comments
 (0)