File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ dependencies = [
84
84
" roman-numerals-py>=1.0.0" ,
85
85
" packaging>=23.0" ,
86
86
" colorama>=0.4.6; sys_platform == 'win32'" ,
87
- " filelock>=3.0" ,
88
87
]
89
88
dynamic = [" version" ]
90
89
Original file line number Diff line number Diff line change 17
17
from subprocess import CalledProcessError
18
18
from typing import TYPE_CHECKING
19
19
20
- import filelock
21
20
from docutils import nodes
22
21
23
22
import sphinx
@@ -275,7 +274,12 @@ def render_math(
275
274
lock : Any = contextlib .nullcontext ()
276
275
if self .builder .parallel_ok :
277
276
lockfile = generated_path .with_suffix (generated_path .suffix + '.lock' )
278
- lock = filelock .FileLock (lockfile )
277
+ try :
278
+ import filelock # type: ignore[import-not-found]
279
+
280
+ lock = filelock .FileLock (lockfile )
281
+ except ImportError :
282
+ pass
279
283
280
284
with lock :
281
285
if not generated_path .is_file ():
You can’t perform that action at this time.
0 commit comments