From 884acc6acb974ab14a193b18cbebea47db23558b Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 1 Feb 2019 09:33:37 +0000 Subject: [PATCH] Set default PY in cargo wrapper (#7195) It calls virtualenv so needs one set. Some scripts call it bare. --- build-support/bin/native/cargo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-support/bin/native/cargo.sh b/build-support/bin/native/cargo.sh index 0e00b02b432..908242aaf29 100755 --- a/build-support/bin/native/cargo.sh +++ b/build-support/bin/native/cargo.sh @@ -4,6 +4,8 @@ set -e REPO_ROOT=$(cd $(dirname "${BASH_SOURCE[0]}") && cd ../../.. && pwd -P) +export PY=${PY:-python2.7} + # Exports: # + CARGO_HOME: The CARGO_HOME of the Pants-controlled rust toolchain. # Exposes: