Skip to content

Commit e6af8ad

Browse files
committed
copytree from distutils
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
1 parent 44a9d45 commit e6af8ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk/python/setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import subprocess
2222
import sys
2323
from distutils.cmd import Command
24+
from distutils.dir_util import copy_tree
2425
from pathlib import Path
2526
from subprocess import CalledProcessError
2627

@@ -29,9 +30,10 @@
2930
try:
3031
from setuptools import setup
3132
from setuptools.command.build_py import build_py
33+
from setuptools.command.build_ext import build_ext as _build_ext
3234
from setuptools.command.develop import develop
3335
from setuptools.command.install import install
34-
from setuptools.command.build_ext import build_ext as _build_ext
36+
3537
except ImportError:
3638
from distutils.command.build_py import build_py
3739
from distutils.command.build_ext import build_ext as _build_ext
@@ -407,7 +409,7 @@ def copy_extensions_to_source(self):
407409
src = os.path.join(self.build_lib, package_dir)
408410

409411
# copy whole directory
410-
shutil.copytree(src, package_dir, dirs_exist_ok=True)
412+
copy_tree(src, package_dir)
411413

412414

413415
setup(

0 commit comments

Comments
 (0)