diff options
author | Tim Orling <timothy.t.orling@intel.com> | 2021-10-30 08:35:15 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-11 22:28:38 +0000 |
commit | cfd64997c473e5dd3de54eac69e92fe1dff5c0eb (patch) | |
tree | 1849d66de891e672f1896351289857375d2a936e /scripts/buildhistory-diff | |
parent | 545719898425114c84ef90a564fe7638aa3759a5 (diff) | |
download | poky-cfd64997c473e5dd3de54eac69e92fe1dff5c0eb.tar.gz |
scripts/buildhistory-diff: drop use of distutils
The use of distutils.version.LooseVersion to check for GitPython > 0.3.1
is not really needed anymore since any supported distribution has at least
1.0.0 (centos-7 via epel7, debian-9, ubuntu-16.04)
If we want to reinstate this check, alternatives would be to require
python3-packaging on all hosts and use packaging.version.Version or
use an imported LooseVersion in bb.version.
[YOCTO #14610]
(From OE-Core rev: 15b1a82b4cdfadeaf89489929e10aaf9a0edd13d)
Signed-off-by: Tim Orling <timothy.t.orling@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bc90dcae9f53ddc246942f4d9b8ae8943e3b9754)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/buildhistory-diff')
-rwxr-xr-x | scripts/buildhistory-diff | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index 833f7c33a5..02eedafd6e 100755 --- a/scripts/buildhistory-diff +++ b/scripts/buildhistory-diff | |||
@@ -11,7 +11,6 @@ | |||
11 | import sys | 11 | import sys |
12 | import os | 12 | import os |
13 | import argparse | 13 | import argparse |
14 | from distutils.version import LooseVersion | ||
15 | 14 | ||
16 | # Ensure PythonGit is installed (buildhistory_analysis needs it) | 15 | # Ensure PythonGit is installed (buildhistory_analysis needs it) |
17 | try: | 16 | try: |
@@ -71,10 +70,6 @@ def main(): | |||
71 | parser = get_args_parser() | 70 | parser = get_args_parser() |
72 | args = parser.parse_args() | 71 | args = parser.parse_args() |
73 | 72 | ||
74 | if LooseVersion(git.__version__) < '0.3.1': | ||
75 | sys.stderr.write("Version of GitPython is too old, please install GitPython (python-git) 0.3.1 or later in order to use this script\n") | ||
76 | sys.exit(1) | ||
77 | |||
78 | if len(args.revisions) > 2: | 73 | if len(args.revisions) > 2: |
79 | sys.stderr.write('Invalid argument(s) specified: %s\n\n' % ' '.join(args.revisions[2:])) | 74 | sys.stderr.write('Invalid argument(s) specified: %s\n\n' % ' '.join(args.revisions[2:])) |
80 | parser.print_help() | 75 | parser.print_help() |