8000
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 a81db07 commit 4f2ace4Copy full SHA for 4f2ace4
pyproject.toml
@@ -14,7 +14,7 @@ requires-python = ">=3.9"
14
dependencies = [
15
'asciitree',
16
'numpy>=1.21.1',
17
- 'fasteners',
+ 'fasteners; sys_platform != "emscripten"',
18
'numcodecs>=0.10.0',
19
]
20
dynamic = [
zarr/sync.py
@@ -3,8 +3,6 @@
3
from threading import Lock
4
from typing import Protocol
5
6
-import fasteners
7
-
8
9
class Synchronizer(Protocol):
10
"""Base class for synchronizers."""
@@ -49,6 +47,8 @@ def __init__(self, path):
49
47
self.path = path
50
48
51
def __getitem__(self, item):
+ import fasteners
+
52
path = os.path.join(self.path, item)
53
lock = fasteners.InterProcessLock(path)
54
return lock
0 commit comments