[llvm] Revert "Replace distutils.version with looseversion since the former was deprecated in python 3.10 and removed in 3.12." (PR #99786)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 20 14:57:20 PDT 2024
https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/99786
Reverts llvm/llvm-project#99549 because it breaks a bunch of build bots.
>From ac18bd3f5360937e10d7b072eb26e0fd5b62e64e Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Sat, 20 Jul 2024 14:57:04 -0700
Subject: [PATCH] =?UTF-8?q?Revert=20"Replace=20distutils.version=20with=20?=
=?UTF-8?q?looseversion=20since=20the=20former=20was=20depr=E2=80=A6"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit 1492e5f1d5a6d302f32ab95910c75b960b611128.
---
cross-project-tests/lit.cfg.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cross-project-tests/lit.cfg.py b/cross-project-tests/lit.cfg.py
index 47062866fbc26..774c4eaf4d976 100644
--- a/cross-project-tests/lit.cfg.py
+++ b/cross-project-tests/lit.cfg.py
@@ -4,7 +4,8 @@
import subprocess
import sys
-from looseversion import LooseVersion
+# TODO: LooseVersion is undocumented; use something else.
+from distutils.version import LooseVersion
import lit.formats
import lit.util
More information about the llvm-commits
mailing list