Skip to content

Commit

Permalink
Resolve #770
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Aug 13, 2022
1 parent 365a16a commit 9e21e8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Expand Up @@ -9,8 +9,9 @@
import distutils
from pkg_resources import get_distribution
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext, copy_file
from setuptools.command.build_ext import build_ext
from distutils import log
from shutil import copy2

try:
from packaging import version
Expand Down Expand Up @@ -334,9 +335,8 @@ def build_extension(self, ext):
os.makedirs(self.build_lib)

log.info(f"Copying {pylief_path} into {pylief_dst}")
copy_file(
pylief_path, pylief_dst, verbose=self.verbose,
dry_run=self.dry_run)
if not self.dry_run:
copy2(pylief_path, pylief_dst)


# SDK
Expand Down

0 comments on commit 9e21e8d

Please sign in to comment.