Skip to content

Commit 031d178

Browse files
committed
Use the prebuilt python3 binary to execute x.py
Change-Id: I9fe144788711b7273af258cbe6b0efa24ae711eb
1 parent 485f147 commit 031d178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

do_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def main():
134134
# Call is not checked because this is *expected* to fail - there isn't a
135135
# user facing way to directly trigger the bootstrap, so we give it a
136136
# no-op to perform that will require it to write out the cargo config.
137-
subprocess.call([OUT_PATH_RUST_SOURCE / 'x.py', '--help'],
137+
subprocess.call([PYTHON_PATH, OUT_PATH_RUST_SOURCE / 'x.py', '--help'],
138138
cwd=OUT_PATH_RUST_SOURCE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
139139

140140
# Offline fetch to regenerate lockfile
@@ -145,8 +145,8 @@ def main():
145145
#
146146
# Build
147147
#
148-
ec = subprocess.Popen([OUT_PATH_RUST_SOURCE / 'x.py', '--stage', '3', 'install'],
149-
cwd=OUT_PATH_RUST_SOURCE, env=env).wait()
148+
ec = subprocess.Popen([PYTHON_PATH, OUT_PATH_RUST_SOURCE / 'x.py',
149+
'--stage', '3', 'install'], cwd=OUT_PATH_RUST_SOURCE, env=env).wait()
150150
if ec != 0:
151151
print("Build stage failed with error {}".format(ec))
152152
sys.exit(ec)

0 commit comments

Comments
 (0)