diff --git a/python/setup.py b/python/setup.py index db41f30f..a72bd705 100644 --- a/python/setup.py +++ b/python/setup.py @@ -246,8 +246,7 @@ class BuildCMakeExtension(build_ext.build_ext): def build_extension(self, ext): dest_path = self.get_ext_fullpath(ext.name) build_path = os.path.join(self.build_temp, os.path.basename(dest_path)) - subprocess.check_call(['cp', build_path, dest_path]) - + shutil.copyfile(build_path, dest_path) def find_data_files(package_dir, patterns): """Recursively finds files whose names match the given shell patterns."""