Merge pull request #467 from aftersomemath:fix-python-setup

PiperOrigin-RevId: 471640674
Change-Id: I588230c597bc49e7a6b5aedb2bd2602f8b538d90
This commit is contained in:
Copybara-Service
2022-09-01 14:58:40 -07:00
+1 -2
View File
@@ -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."""