Skip to content

Commit 4e0fcab

Browse files
ensure executable and other stat bits are copied (#10)
1 parent f142307 commit 4e0fcab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hatch_build_scripts/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def initialize(
5858
if src_file not in created:
5959
out_file.parent.mkdir(parents=True, exist_ok=True)
6060
shutil.copyfile(src_file, out_file)
61+
shutil.copystat(src_file, out_file)
6162
created.add(out_file)
6263
else:
6364
log.debug(f"Skipping {src_file} - already exists")

0 commit comments

Comments
 (0)