File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44build_file: " cel-python/release/kokoro/release_linux.sh"
55timeout_mins: 120
6+
7+ container_properties {
8+ docker_image: " us-central1-docker.pkg.dev/kokoro-container-bakery/kokoro/ubuntu/ubuntu2204/ktcb:current"
9+ docker_sibling_containers: true
10+ docker_privileged: true
11+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [ -z "${KOKORO_BUILD_ID}" ]; then
88 fi
99fi
1010
11- pip install -U keyring keyrings.google-artifactregistry-auth twine cibuildwheel
11+ pip install --no-cache-dir - U keyring keyrings.google-artifactregistry-auth twine cibuildwheel
1212
1313REPO_DIR=$( mktemp -d)
1414echo " Created temporary directory: ${REPO_DIR} "
4040VERSION=${VERSION# v}
4141echo " Building release for version: ${VERSION} "
4242
43- TMP_DIR=$( mktemp -d)
43+ # Explicitly create a normal directory in the workspace instead of using mktemp.
44+ TMP_DIR=" ${KOKORO_ARTIFACTS_DIR:- .} /cel-python-build"
45+ mkdir -p " ${TMP_DIR} "
46+ export TMPDIR=" ${TMP_DIR} "
4447echo " Build directory: ${TMP_DIR} "
4548
49+ # Pass host proxy settings into the cibuildwheel containers so pip can access PyPI.
50+ export CIBW_ENVIRONMENT=" http_proxy=$http_proxy https_proxy=$https_proxy HTTP_PROXY=$HTTP_PROXY HTTPS_PROXY=$HTTPS_PROXY "
51+
52+ # Enable extremely verbose logs for cibuildwheel.
53+ export CIBW_BUILD_VERBOSITY=3
54+
4655# Add trap cleanup for TMP_DIR as well
4756trap ' echo "Cleaning up temporary directories: ${REPO_DIR} ${TMP_DIR}"; rm -rf "${REPO_DIR}" "${TMP_DIR}"' EXIT
4857
You can’t perform that action at this time.
0 commit comments