Skip to content

Commit 3a246c7

Browse files
committed
unix: chmod created files to ensure permissions
I have a hunch this may fix #12.
1 parent 5b0fdaf commit 3a246c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpython-unix/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,16 @@ def build_cpython(
574574
# TODO copy latest pip/setuptools.
575575

576576
with tempfile.NamedTemporaryFile("wb") as fh:
577+
# In case default file masks cause wonkiness.
578+
os.chmod(fh.name, 0o644)
579+
577580
fh.write(setup_local_content)
578581
fh.flush()
579582

580583
build_env.copy_file(fh.name, dest_name="Setup.local")
581584

582585
with tempfile.NamedTemporaryFile("wb") as fh:
586+
os.chmod(fh.name, 0o644)
583587
fh.write(extra_make_content)
584588
fh.flush()
585589

0 commit comments

Comments
 (0)