Skip to content

Commit

Permalink
swap out cp call with shutil.copyfile closes google-deepmind#419
Browse files Browse the repository at this point in the history
  • Loading branch information
aftersomemath committed Sep 1, 2022
1 parent e3a8224 commit ac8f36a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ def _configure_cmake(self):
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."""
Expand Down

0 comments on commit ac8f36a

Please sign in to comment.