diff --git a/src/python/library/build_wheel.py b/src/python/library/build_wheel.py index d9abe5c4a..d32e7732a 100755 --- a/src/python/library/build_wheel.py +++ b/src/python/library/build_wheel.py @@ -32,7 +32,6 @@ import shutil import subprocess import sys -from distutils.dir_util import copy_tree from tempfile import mkstemp @@ -51,7 +50,7 @@ def touch(path): def cpdir(src, dest): - copy_tree(src, dest, preserve_symlinks=1) + shutil.copytree(src, dest, symlinks=True, dirs_exist_ok=True) def sed(pattern, replace, source, dest=None):