File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2121import subprocess
2222import sys
2323from distutils .cmd import Command
24+ from distutils .dir_util import copy_tree
2425from pathlib import Path
2526from subprocess import CalledProcessError
2627
2930try :
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+
3537except 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
413415setup (
You can’t perform that action at this time.
0 commit comments