Skip to content

Commit

Permalink
chore: use xz archives for cpython (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Dec 24, 2023
1 parent e7e3b8c commit 9222c50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docker/build_scripts/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function pyver_dist_dir {
}

CPYTHON_DIST_DIR=$(pyver_dist_dir ${CPYTHON_VERSION})
fetch_source Python-${CPYTHON_VERSION}.tgz ${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}
fetch_source Python-${CPYTHON_VERSION}.tgz.asc ${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}
fetch_source Python-${CPYTHON_VERSION}.tar.xz ${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}
fetch_source Python-${CPYTHON_VERSION}.tar.xz.asc ${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}
gpg --import ${MY_DIR}/cpython-pubkeys.txt
gpg --verify Python-${CPYTHON_VERSION}.tgz.asc
tar -xzf Python-${CPYTHON_VERSION}.tgz
gpg --verify Python-${CPYTHON_VERSION}.tar.xz.asc
tar -xJf Python-${CPYTHON_VERSION}.tar.xz
pushd Python-${CPYTHON_VERSION}
PREFIX="/opt/_internal/cpython-${CPYTHON_VERSION}"
mkdir -p ${PREFIX}/lib
Expand Down
2 changes: 1 addition & 1 deletion tools/update_native_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _update_cpython(dry_run):
if latest_version > current_version:
root = f"Python-{latest_version}"
url = f"https://www.python.org/ftp/python/{latest_version.major}.{latest_version.minor}.{latest_version.micro}"
_sha256(f"{url}/{root}.tgz")
_sha256(f"{url}/{root}.tar.xz")
lines[i] = lines[i].replace(match["version"], str(latest_version))
message = f"Bump CPython {current_version}{latest_version}"
print(message)
Expand Down

0 comments on commit 9222c50

Please sign in to comment.