Skip to content

Commit 375f574

Browse files
morambrocopybara-github
authored andcommitted
Fix missing install of tools/distribution/requirements.txt when testing sdists
PiperOrigin-RevId: 625599905 Change-Id: Ibaf1746c0b198e74ab3df18c2111ba8d84b29fc3
1 parent 96bcee8 commit 375f574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/distribution/test_dist.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ enable_py_version() {
8282
readonly version
8383
# Set current Python version via environment variable.
8484
pyenv shell "${version}"
85-
# Update environment.
86-
python3 -m pip install --require-hashes -r \
87-
"${TINK_PYTHON_ROOT_PATH}/tools/distribution/requirements.txt"
8885
}
8986

9087
is_sdist() {
@@ -108,6 +105,9 @@ main() {
108105
| sed 's/cp3/3./')"
109106
enable_py_version "${python_version}"
110107
fi
108+
# Update environment.
109+
python3 -m pip install --require-hashes -r \
110+
"${TINK_PYTHON_ROOT_PATH}/tools/distribution/requirements.txt"
111111
install_dist_and_run_tests "${dist}"
112112
done
113113
}

0 commit comments

Comments
 (0)