File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,11 @@ else
276
276
PYTHON_BINARY_SUFFIX=
277
277
fi
278
278
279
+ # Python interpreter to use during the build.
280
+ if [ -z " ${BUILD_PYTHON} " ]; then
281
+ BUILD_PYTHON=${ROOT} /out/python/install/bin/python3
282
+ fi
283
+
279
284
# If we're building a shared library hack some binaries so rpath is set.
280
285
# This ensures we can run the binary in any location without
281
286
# LD_LIBRARY_PATH pointing to the directory containing libpython.
@@ -346,7 +351,7 @@ index ec9942f0..1b306ca7 100644
346
351
except AttributeError:
347
352
EOF
348
353
349
- ${ROOT} /out/python/install/bin/python3 setup.py install
354
+ ${BUILD_PYTHON} setup.py install
350
355
popd
351
356
352
357
pushd ${ROOT} /pip-${PIP_VERSION}
@@ -385,7 +390,7 @@ index 60a69d8..08c0597 100644
385
390
except AttributeError:
386
391
EOF
387
392
388
- ${ROOT} /out/python/install/bin/python3 setup.py install
393
+ ${BUILD_PYTHON} setup.py install
389
394
popd
390
395
391
396
# Emit metadata to be used in PYTHON.json.
430
435
431
436
PYTHON_EXE=${ROOT} /out/python/install/bin/$( readlink ${ROOT} /out/python/install/bin/python3)
432
437
433
- ${ROOT} /out/python/install/bin/python3 ${ROOT} /generate_metadata.py ${ROOT} /metadata.json
438
+ ${BUILD_PYTHON} ${ROOT} /generate_metadata.py ${ROOT} /metadata.json
434
439
cat ${ROOT} /metadata.json
435
440
436
441
if [ " ${CC} " != " musl-clang" ]; then
You can’t perform that action at this time.
0 commit comments