File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
import distutils
10
10
from pkg_resources import get_distribution
11
11
from setuptools import setup , Extension
12
- from setuptools .command .build_ext import build_ext , copy_file
12
+ from setuptools .command .build_ext import build_ext
13
13
from distutils import log
14
+ from shutil import copy2
14
15
15
16
from distutils .version import LooseVersion
16
17
@@ -329,10 +330,9 @@ def build_extension(self, ext):
329
330
if not os .path .exists (self .build_lib ):
330
331
os .makedirs (self .build_lib )
331
332
332
- log .info ("Copying {} into {}" .format (pylief_path , pylief_dst ))
333
- copy_file (
334
- pylief_path , pylief_dst , verbose = self .verbose ,
335
- dry_run = self .dry_run )
333
+ log .info (f"Copying { pylief_path } into { pylief_dst } " )
334
+ if not self .dry_run :
335
+ copy2 (pylief_path , pylief_dst )
336
336
337
337
338
338
# SDK
You can’t perform that action at this time.
0 commit comments