From 23fbe2261360b2e4fb48bc0a6bfcdcf1703caa8e Mon Sep 17 00:00:00 2001 From: Jerome Kieffer Date: Thu, 5 Oct 2023 13:19:59 +0200 Subject: [PATCH] remove dependency on distutils --- pyFAI/gui/utils/ProxyAction.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyFAI/gui/utils/ProxyAction.py b/pyFAI/gui/utils/ProxyAction.py index 6b807e020..193283234 100644 --- a/pyFAI/gui/utils/ProxyAction.py +++ b/pyFAI/gui/utils/ProxyAction.py @@ -25,9 +25,10 @@ __authors__ = ["V. Valls"] __license__ = "MIT" -__date__ = "16/10/2020" +__date__ = "05/10/2023" -from distutils.version import LooseVersion +def LooseVersion(version): + return tuple(int(i) for i in version.split(".") if i.isdecimal()) from silx.gui import qt