remove use of distutils package entirely to avoid future deprecation

issues

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>


[ROCm/rocprofiler-compute commit: 7a01f499d7]
Этот коммит содержится в:
Karl W. Schulz authored and Cole Ramos committed 2024-05-28 15:34:00 -05:00
1 родитель 7288bf34f4
Коммит dd374ea0ef
1 file changed
+3 -3
+3 -3
Просмотреть файл
@@ -30,7 +30,6 @@ import sys
from pip._internal.req import parse_requirements
from pathlib import Path
from importlib import import_module, metadata
from distutils import text_file
import re
try:
@@ -65,9 +64,10 @@ def verify_deps():
for location in depsLocation:
checkFile = os.path.join(bindir, location)
if os.path.exists(checkFile):
dependencies = text_file.TextFile(checkFile).readlines()
error = False
with open(checkFile, "r") as file_in:
dependencies = file_in.read().splitlines()
error = False
version_pattern = r"^([^=<>]+)([=<>]+)(.*)$"
for dependency in dependencies: