Skip to content

Commit

Permalink
pythonbuild: install toolchain and dependency archives as build user
Browse files Browse the repository at this point in the history
So we can modify file content when building packages. I'm going to need
this for libatomic hackery it appears.
  • Loading branch information
indygreg committed Sep 23, 2023
1 parent 6b186ce commit 7efa00a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pythonbuild/buildenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def install_toolchain_archive(self, build_dir, package_name, host_platform):

p = build_dir / basename
self.copy_file(p)
self.run(["/bin/tar", "-C", "/tools", "-xf", "/build/%s" % p.name], user="root")
self.run(
["/bin/tar", "-C", "/tools", "-xf", "/build/%s" % p.name], user="build"
)

def install_artifact_archive(
self, build_dir, package_name, target_triple, optimizations
Expand All @@ -60,7 +62,9 @@ def install_artifact_archive(
p = build_dir / basename

self.copy_file(p)
self.run(["/bin/tar", "-C", "/tools", "-xf", "/build/%s" % p.name], user="root")
self.run(
["/bin/tar", "-C", "/tools", "-xf", "/build/%s" % p.name], user="build"
)

def install_toolchain(
self,
Expand Down

0 comments on commit 7efa00a

Please sign in to comment.