Skip to content

Commit

Permalink
Fixes to release script post-pantsbuild#7235.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjyw committed Mar 10, 2019
1 parent 7036c50 commit 780af1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-support/bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ py_major_minor_patch=$(${PY} -c 'import sys; print(".".join(map(str, sys.version
export PANTS_PYTHON_SETUP_INTERPRETER_CONSTRAINTS="${PANTS_PYTHON_SETUP_INTERPRETER_CONSTRAINTS:-['CPython==${py_major_minor_patch}']}"

function run_local_pants() {
${ROOT}/pants "$@"
${ROOT}/pants2 "$@"
}

# NB: Pants core does not have the ability to change its own version, so we compute the
Expand Down Expand Up @@ -483,7 +483,7 @@ function fetch_and_check_prebuilt_wheels() {
fi
done

if [ "${cross_platform}" != "true" ] && [ ${#packages[@]} -ne 2 ]; then
if [ "${cross_platform}" != "true" ] && [ ${#packages[@]} -ne 4 ]; then
missing+=("${NAME} (expected whls for each platform: had only ${packages[@]})")
continue
fi
Expand Down Expand Up @@ -590,7 +590,7 @@ function build_pex() {

execute_pex \
-o "${dest}" \
--script=pants \
--script=pants2 \
"${platform_flags[@]}" \
"${requirements[@]}"

Expand Down

0 comments on commit 780af1f

Please sign in to comment.