diff options
author | Brad King <brad.king@kitware.com> | 2023-04-05 13:12:36 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-05 15:03:14 -0400 |
commit | 99bf8418ee076e81c3ea7b1df333afdf3227967d (patch) | |
tree | b2c45484d86e7d55291c607d2a2ff94928a5ab19 /.gitlab/ci/download_python3.cmake | |
parent | 967456423b8bcc4f833c897140339e62ceb7bcb5 (diff) | |
download | cmake-99bf8418ee076e81c3ea7b1df333afdf3227967d.tar.gz |
ci: Update to Python 3.11.3 in Windows jobs
Use the official embedded distribution `.zip` files,
but put copies at URLs we control.
Diffstat (limited to '.gitlab/ci/download_python3.cmake')
-rw-r--r-- | .gitlab/ci/download_python3.cmake | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/.gitlab/ci/download_python3.cmake b/.gitlab/ci/download_python3.cmake deleted file mode 100644 index 0f5b18b4ff..0000000000 --- a/.gitlab/ci/download_python3.cmake +++ /dev/null @@ -1,41 +0,0 @@ -cmake_minimum_required(VERSION 3.17) - -set(version "3.8.6") -set(sha256sum "376e18eef7e3ea467f0e3af041b01fc7e2f12855506c2ab2653ceb5e0951212e") -set(dirname "python-${version}-embed-win-x86_64") -set(tarball "${dirname}.tar.xz") - -# Download the file. -file(DOWNLOAD - "https://cmake.org/files/dependencies/${tarball}" - ".gitlab/${tarball}" - STATUS download_status - EXPECTED_HASH "SHA256=${sha256sum}") - -# Check the download status. -list(GET download_status 0 res) -if (res) - list(GET download_status 1 err) - message(FATAL_ERROR - "Failed to download ${tarball}: ${err}") -endif () - -# Extract the file. -execute_process( - COMMAND - "${CMAKE_COMMAND}" - -E tar - xzf "${tarball}" - WORKING_DIRECTORY ".gitlab" - RESULT_VARIABLE res - ERROR_VARIABLE err - ERROR_STRIP_TRAILING_WHITESPACE) -if (res) - message(FATAL_ERROR - "Failed to extract ${tarball}: ${err}") -endif () - -# Move to a predictable directory. -file(RENAME - ".gitlab/${dirname}" - ".gitlab/python3") |