Skip to content

Commit 18b737e

Browse files
oewayhoodmane
authored andcommitted
Fix zarr sync
This patch removes fasteners and disables zarr.sync which uses process and thread
1 parent a81db07 commit 18b737e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ requires-python = ">=3.9"
1414
dependencies = [
1515
'asciitree',
1616
'numpy>=1.21.1',
17-
'fasteners',
17+
'fasteners; sys_platform != "emscripten"',
1818
'numcodecs>=0.10.0',
1919
]
2020
dynamic = [

zarr/sync.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from threading import Lock
44
from typing import Protocol
55

6-
import fasteners
7-
86

97
class Synchronizer(Protocol):
108
"""Base class for synchronizers."""
@@ -49,6 +47,7 @@ def __init__(self, path):
4947
self.path = path
5048

5149
def __getitem__(self, item):
50+
import fasteners
5251
path = os.path.join(self.path, item)
5352
lock = fasteners.InterProcessLock(path)
5453
return lock

0 commit comments

Comments
 (0)