Skip to content

Commit 27cada7

Browse files
committed
Resolve #770
1 parent c7b3ce3 commit 27cada7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
import distutils
1010
from pkg_resources import get_distribution
1111
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
1313
from distutils import log
14+
from shutil import copy2
1415

1516
from distutils.version import LooseVersion
1617

@@ -329,10 +330,9 @@ def build_extension(self, ext):
329330
if not os.path.exists(self.build_lib):
330331
os.makedirs(self.build_lib)
331332

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)
336336

337337

338338
# SDK

0 commit comments

Comments
 (0)