Skip to content
Snippets Groups Projects
Commit d698daa2 authored by Ian Baum's avatar Ian Baum
Browse files

Merge branch 'cb-update-python3' into 'master'

parents 4522ba0c 95de26b0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -23,7 +23,7 @@ name 'python3'
# files/gitlab-cookbooks/gitlab/attributes/default.rb
# spec/chef/recipes/gitaly_spec.rb
# spec/chef/recipes/gitlab-rails_spec.rb
default_version '3.9.17'
default_version '3.9.21'
 
dependency 'libedit'
dependency 'ncurses'
Loading
Loading
@@ -40,7 +40,7 @@ license_file 'LICENSE'
skip_transitive_dependency_licensing true
 
source url: "https://www.python.org/ftp/python/#{version}/Python-#{version}.tgz",
sha256: '8ead58f669f7e19d777c3556b62fae29a81d7f06a7122ff9bc57f7dd82d7e014'
sha256: '667c3ba2ca98d39ead1162f6548c3475768582e2ff89e0821d25eb956ac09944'
 
relative_path "Python-#{version}"
 
Loading
Loading
#!/usr/bin/env bash
# Fetch and replace the python3 checksum.
# Dependencies: wget, sed, awk
set -eo pipefail
source "$(dirname "$0")/shared.sh"
build_file="config/software/python3.rb"
get_checksum() {
local version="$1"
local archive_url="https://www.python.org/ftp/python/${version}/Python-${version}.tgz"
# Python does not publish sha sums for their source tarballs, so we calculate it from the archive.
wget -q -O - "$archive_url" | sha256sum | awk '{print $1}'
}
version=$(get_default_version "$build_file")
checksum=$(get_checksum "$version")
replace_sha256_checksum "$checksum" "$build_file"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment