From 1716a31e739ff9057e94a458b0b0329263aa6b13 Mon Sep 17 00:00:00 2001 From: Aaron Rossetto Date: Thu, 6 Jan 2022 13:22:58 -0600 Subject: deps: rpclib: Replace distutils.dir_util with shutil This commit replaces the use of distutils.dir_util.copy_tree() with the equivalent function shutil.copytree(). --- host/lib/deps/import_rpclib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'host/lib/deps/import_rpclib.py') diff --git a/host/lib/deps/import_rpclib.py b/host/lib/deps/import_rpclib.py index ffc4bbff0..28592e6b8 100755 --- a/host/lib/deps/import_rpclib.py +++ b/host/lib/deps/import_rpclib.py @@ -9,7 +9,6 @@ Tool to import external dependency rpclib into UHD tree """ import argparse -from distutils.dir_util import copy_tree import os import re import shutil @@ -73,7 +72,7 @@ def copy_important_files(target_root, rpclib_root): for rpc_file in os.listdir(rpclib_root): if rpc_file in IMPORTANT_FILES: if os.path.isdir(os.path.join(rpclib_root, rpc_file)): - copy_tree( + shutil.copytree( os.path.join(rpclib_root, rpc_file), os.path.join(target_root, rpc_file) ) -- cgit v1.2.3