Skip to content

Commit 6937325

Browse files
committed
[lbuild] distutils is deprecated since Python 3.12
1 parent d72efc7 commit 6937325

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

repo.lb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ import hashlib
1818
import platform
1919

2020
from pathlib import Path
21-
from distutils.version import StrictVersion
2221
from git import Repo
2322
from os.path import normpath
2423

24+
def StrictVersion(v):
25+
return tuple(map(int, (v.split("."))))
26+
2527
# Check for miminum required lbuild version
2628
import lbuild
2729
min_lbuild_version = "1.21.6"

0 commit comments

Comments
 (0)