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]
This commit is contained in:
committed by
Cole Ramos
parent
7288bf34f4
commit
dd374ea0ef
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user