Skip to content

Commit

Permalink
Allow pex download path to be overridden (pantsbuild#6348)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Aug 15, 2018
1 parent b7c607f commit 5f2ad63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-support/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ readonly DEPLOY_PANTS_WHEEL_DIR="${DEPLOY_DIR}/${DEPLOY_PANTS_WHEELS_PATH}"
# only pants core is included.
: ${PANTS_PEX_PACKAGES:="pantsbuild.pants"}

# URL from which pex release binaries can be downloaded.
: ${PEX_DOWNLOAD_PREFIX:="https://github.com/pantsbuild/pex/releases/download"}

source ${ROOT}/contrib/release_packages.sh

function find_pkg() {
Expand Down Expand Up @@ -601,7 +604,7 @@ function build_pex() {
cd $(mktemp -d -t build_pex.XXXXX)
trap "rm -rf $(pwd -P)" EXIT

curl -sSL https://github.com/pantsbuild/pex/releases/download/v${PEX_VERSION}/${PEX_PEX} -O
curl -sSL "${PEX_DOWNLOAD_PREFIX}/v${PEX_VERSION}/${PEX_PEX}" -O
chmod +x ./${PEX_PEX}

./${PEX_PEX} \
Expand Down

0 comments on commit 5f2ad63

Please sign in to comment.