Skip to content

Commit 731c6b2

Browse files
Fix patch that disables multiprocessing, threading
1 parent ee39d1e commit 731c6b2

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tools/ci/patches/0001-disable-multiprocessing-and-pthreads.patch

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
This patch disables multiprocessing and pthread for blosc. This file
2-
is attributed to the Pyodide developers and can be viewed at the upstream
3-
Pyodide repository at the following link:
2+
is adapted from and attributed to the Pyodide developers and can be
3+
viewed at the upstream Pyodide repository at the following link:
44

55
https://github.com/pyodide/pyodide/blob/d32e376013d8977b66c6aa828042b1fee8047aea/packages/numcodecs/patches/fixblosc.patch
66

77

8-
diff --git a/numcodecs/blosc.pyx b/numcodecs/blosc.pyx
9-
index 3bfdc00..c6521b7 100644
10-
--- a/numcodecs/blosc.pyx
11-
+++ b/numcodecs/blosc.pyx
12-
@@ -77,6 +77,8 @@ AUTOBLOCKS = 0
13-
# synchronization
14-
try:
15-
mutex = multiprocessing.Lock()
16-
+except ModuleNotFoundError:
17-
+ mutex = None
18-
except OSError:
19-
mutex = None
20-
218
diff --git a/c-blosc/blosc/blosc.h b/c-blosc/blosc/blosc.h
229
index 40857d0..8a1e969 100644
2310
--- a/c-blosc/blosc/blosc.h

0 commit comments

Comments
 (0)