Skip to content

Commit

Permalink
remove use of distutils package entirely to avoid future deprecation
Browse files Browse the repository at this point in the history
issues

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
  • Loading branch information
koomie authored and coleramos425 committed May 28, 2024
1 parent aca084f commit 7a01f49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/omniperf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7a01f49

Please sign in to comment.