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 = [
314314 " ruamel" ,
315315 " rq" ,
316316 " shellingham" ,
317+ " setuptools" ,
317318 " toil.*" ,
318319 " tqdm" ,
319320 " urllib3.*" ,
Original file line number Diff line number Diff line change 2323
2424from renku .version import __template_version__ , __version__
2525
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+
2634
2735class LoaderWrapper (importlib .abc .Loader ):
2836 """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