diff --git a/llvm-build/env_prepare.sh b/llvm-build/env_prepare.sh index 7945ab3d533ee16475644ce45e1b7b5a2b68fcda..ac82ea6673f9718b7aa5df2f5a3fb75ca7e53d71 100755 --- a/llvm-build/env_prepare.sh +++ b/llvm-build/env_prepare.sh @@ -168,5 +168,10 @@ if [ ! $? == 0 ] || [ x == x${CLANG_FOUND_VERSION} ] ; then fi # ... and compare it with one in python file echo "prebuilts_clang_version='${CLANG_FOUND_VERSION}'" | diff -q - $(dirname $0)/prebuilts_clang_version.py || ( echo Clang versions mismatch ; exit 1 ) + +# replace python +rm -rf "${code_dir}/prebuilts/python3/linux-x86" +tar -xvzf "${code_dir}/toolchain/llvm-project/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz" -C "${code_dir}/prebuilts/python3" +"${code_dir}"/prebuilts/python3/linux-x86/3.11.4/bin/python3 "${code_dir}"/toolchain/llvm-project/print_sys_info.py exit 0 diff --git a/print_sys_info.py b/print_sys_info.py new file mode 100644 index 0000000000000000000000000000000000000000..cfdbc6dfdb4efd40e1e9e806a55ada8c51c949fc --- /dev/null +++ b/print_sys_info.py @@ -0,0 +1,3 @@ +import sys + +print(sys.version) diff --git a/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz b/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9bd6af81bcf74c75c579f09e2ba39c62d9d5d3a7 Binary files /dev/null and b/python-linux-x86-GLIBC2.27-3.11.4_20250807.tar.gz differ