From b599e2655d7a5b34d49d9339de53a4420e0d095b Mon Sep 17 00:00:00 2001 From: Aditya Vaidya Date: Sat, 31 Aug 2024 22:33:16 -0500 Subject: [PATCH] distutils.version.LooseVersion --> looseversion.LooseVersion --- cortex/svgoverlay.py | 2 +- cortex/utils.py | 2 +- requirements.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cortex/svgoverlay.py b/cortex/svgoverlay.py index 7dad915c..01ee4d6a 100644 --- a/cortex/svgoverlay.py +++ b/cortex/svgoverlay.py @@ -11,7 +11,7 @@ from scipy.spatial import cKDTree from builtins import zip, str -from distutils.version import LooseVersion +from looseversion import LooseVersion from lxml import etree from lxml.builder import E diff --git a/cortex/utils.py b/cortex/utils.py index 63c3c20b..887755c0 100644 --- a/cortex/utils.py +++ b/cortex/utils.py @@ -9,7 +9,7 @@ import tempfile import urllib.request import warnings -from distutils.version import LooseVersion +from looseversion import LooseVersion from importlib import import_module import h5py diff --git a/requirements.txt b/requirements.txt index b30db96c..1094dd79 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,3 +14,4 @@ pillow nibabel>=2.1 networkx>=2.1 imageio +looseversion