Skip to content

Commit f1bad96

Browse files
authored
Ensure pet binary is marked as executable (#23680)
1 parent 2abec37 commit f1bad96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pathlib
66
import nox
77
import shutil
8+
import sys
89
import sysconfig
910
import uuid
1011

@@ -78,6 +79,9 @@ def azure_pet_build_after(session: nox.Session):
7879
bin_dest = dest_dir / "bin" / bin_name
7980
shutil.copyfile(abs_bin_path, bin_dest)
8081

82+
if sys.platform != "win32":
83+
shutil.chmod(bin_dest, 0o755)
84+
8185

8286
@nox.session()
8387
def native_build(session: nox.Session):

0 commit comments

Comments
 (0)