Skip to content

Commit b2f7cb0

Browse files
authored
fix(ci): install setuptools in temporary virtualenv for import profile (#17714)
The import-profile CI workflow fails on Python 3.15 with: ``` ModuleNotFoundError: No module named 'google.cloud.api'. Did you mean: 'google.cloud.location'? ``` This PR installs setuptools inside the temporary .venv-profiler virtualenv created for profiling. This ensures the profiler's namespace package resolution logic works correctly on newer Python versions (3.12+) where setuptools is no longer installed by default.
1 parent a85d59f commit b2f7cb0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ci/run_single_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ case ${TEST_TYPE} in
110110
echo "Creating temporary virtualenv for import profile..."
111111
python3 -m venv .venv-profiler
112112
source .venv-profiler/bin/activate
113+
python -m pip install --upgrade pip setuptools
113114

114115
PACKAGE_NAME=$(basename $(pwd))
115116
PROFILER_TEMP_DIR=$(mktemp -d)

0 commit comments

Comments
 (0)