Skip to content

Commit

Permalink
Drop distutils as it is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Dec 11, 2024
1 parent 83b8a7e commit 018b599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rosdistro/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import re
import subprocess

from distutils.version import LooseVersion
from packaging.version import parse


class Git(object):
Expand All @@ -57,7 +57,7 @@ def version_gte(cls, version):
if not cls._client_version:
result = cls().command('--version')
cls._client_version = result['output'].split()[-1]
return LooseVersion(cls._client_version) >= LooseVersion(version)
return parse(cls._client_version) >= parse(version)


def ref_is_hash(ref):
Expand Down

0 comments on commit 018b599

Please sign in to comment.