# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies # of the Software, and to permit persons to whom the Software is furnished to do # so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. VERSION='25.0.0' BUILD='' graalpy_arch="$(graalpy_architecture 2>/dev/null || true)" case "$graalpy_arch" in "linux-amd64" ) checksum="628d5e2af40b2a3ca694bbea169388394dd30fe0727a3f1b4c92319d7bb788d5" ;; "linux-aarch64" ) checksum="7065492dea48a31adb5894379cd35acfd479c5a4158f3496f1485adedacf9bbb" ;; "macos-amd64" ) checksum="1b866e651f0016cfdc8d5d4f8e64023cd26024755d4fe5bef86d02f1a9b701ec" ;; "macos-aarch64" ) checksum="cec1e964f75ca5e881830e8670acea9486d589c1db909adf2ba974f16650bb58" ;; * ) { echo colorize 1 "ERROR" echo ": No binary distribution of GraalPy is available for $(uname -sm)." echo } >&2 exit 1 ;; esac if [ -n "${BUILD}" ]; then url="https://github.com/graalvm/graalvm-ce-dev-builds/releases/download/${VERSION}-dev-${BUILD}/graalpy-community-dev-${graalpy_arch}.tar.gz" else url="https://github.com/oracle/graalpython/releases/download/graal-${VERSION}/graalpy-community-${VERSION}-${graalpy_arch}.tar.gz#${checksum}" fi install_package "graalpy-community-${VERSION}${BUILD}" "${url}" "copy" ensurepip