Commit e6af8ad 1 parent 44a9d45 commit e6af8ad Copy full SHA for e6af8ad
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
import subprocess
22
22
import sys
23
23
from distutils .cmd import Command
24
+ from distutils .dir_util import copy_tree
24
25
from pathlib import Path
25
26
from subprocess import CalledProcessError
26
27
29
30
try :
30
31
from setuptools import setup
31
32
from setuptools .command .build_py import build_py
33
+ from setuptools .command .build_ext import build_ext as _build_ext
32
34
from setuptools .command .develop import develop
33
35
from setuptools .command .install import install
34
- from setuptools . command . build_ext import build_ext as _build_ext
36
+
35
37
except ImportError :
36
38
from distutils .command .build_py import build_py
37
39
from distutils .command .build_ext import build_ext as _build_ext
@@ -407,7 +409,7 @@ def copy_extensions_to_source(self):
407
409
src = os .path .join (self .build_lib , package_dir )
408
410
409
411
# copy whole directory
410
- shutil . copytree (src , package_dir , dirs_exist_ok = True )
412
+ copy_tree (src , package_dir )
411
413
412
414
413
415
setup (
You can’t perform that action at this time.
0 commit comments