swap out cp call with shutil.copyfile closes #462

This commit is contained in:
Levi Burner
2022-09-01 16:49:01 -04:00
parent e3a82247c2
commit e0f6441a27
+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."""