This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 40
40
41
41
PANTS_BOOTSTRAP=" ${PANTS_SETUP_CACHE} /bootstrap-$( uname -s) -$( uname -m) "
42
42
43
- _PEX_VERSION=2.1.62
43
+ _PEX_VERSION=2.1.103
44
44
_PEX_URL=" https://github.com/pantsbuild/pex/releases/download/v${_PEX_VERSION} /pex"
45
- _PEX_EXPECTED_SHA256=" 56668b1ca147bd63141e586ffee97c7cc51ce8e6eac6c9b7a4bf1215b94396e5 "
45
+ _PEX_EXPECTED_SHA256=" 4d45336511484100ae4e2bab24542a8b86b12c8cb89230463593c60d08c4b8d3 "
46
46
47
47
VIRTUALENV_VERSION=20.4.7
48
48
VIRTUALENV_REQUIREMENTS=$(
@@ -282,9 +282,13 @@ function bootstrap_pex {
282
282
function scrub_env_vars {
283
283
# Ensure the virtualenv PEX runs as shrink-wrapped.
284
284
# See: https://github.com/pantsbuild/setup/issues/105
285
- if [[ -n " ${! PEX_@ } " ]]; then
286
- warn " Scrubbing ${! PEX_@ } "
287
- unset " ${! PEX_@ } "
285
+ local -r pex_env_vars=(${! PEX_@ } )
286
+ if [[ ! ${# pex_env_vars[@]} -eq 0 ]]; then
287
+ local -r pex_env_vars_to_scrub=" ${pex_env_vars[@]/ PEX_ROOT} "
288
+ if [[ -n " ${pex_env_vars_to_scrub[@]} " ]]; then
289
+ warn " Scrubbing ${pex_env_vars_to_scrub[@]} "
290
+ unset ${pex_env_vars_to_scrub[@]}
291
+ fi
288
292
fi
289
293
# Also ensure pip doesn't think packages on PYTHONPATH
290
294
# are already installed.
You can’t perform that action at this time.
0 commit comments