File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ module = [
314
314
" ruamel" ,
315
315
" rq" ,
316
316
" shellingham" ,
317
+ " setuptools" ,
317
318
" toil.*" ,
318
319
" tqdm" ,
319
320
" urllib3.*" ,
Original file line number Diff line number Diff line change 23
23
24
24
from renku .version import __template_version__ , __version__
25
25
26
+ # distutils is deprecated and fully replaced by setuptools. we don't depend on either, but some of our
27
+ # dependencies do and if distutils gets imported before setuptools, we get an annoying warning.
28
+ # By forcing the import here first, we prevent that warning and ensure the setuptools version is used.
29
+ try :
30
+ import setuptools # noqa: F401 # type: ignore
31
+ except ImportError :
32
+ pass
33
+
26
34
27
35
class LoaderWrapper (importlib .abc .Loader ):
28
36
"""Wrap an importlib loader and add the loaded module to sys.modules with an additional name."""
You can’t perform that action at this time.
0 commit comments