Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions release/kokoro/release_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export VIRTUALENV_NO_DOWNLOAD=1
export PIP_DISABLE_PIP_VERSION_CHECK=1

# Pass these environment variables to the cibuildwheel Docker container
export CIBW_ENVIRONMENT="VIRTUALENV_NO_DOWNLOAD=1 PIP_DISABLE_PIP_VERSION_CHECK=1"
export CIBW_ENVIRONMENT="VIRTUALENV_NO_DOWNLOAD=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_DEFAULT_TIMEOUT=120"
export CIBW_DEPENDENCY_VERSIONS="latest"
export CIBW_CONTAINER_ENGINE_EXTRA_ARGS="--network=host"

Expand Down Expand Up @@ -203,7 +203,13 @@ rm -rf cel_expr_python/*_test.py

echo "Downloading bazelisk on host..."
curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64
chmod +x bazelisk-linux-amd64
curl -LO https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-arm64
chmod +x bazelisk-linux-amd64 bazelisk-linux-arm64

echo "Downloading build dependencies on host..."
mkdir -p build_deps
pip download --only-binary=:all: --dest build_deps "setuptools>=40.8.0" "wheel"
pip download --only-binary=:all: --dest build_deps --python-version 3.9 --platform manylinux2014_x86_64 "virtualenv"

# Check if pyproject.toml exists before running sed
if [ -f pyproject.toml ]; then
Expand Down
6 changes: 5 additions & 1 deletion release/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ test-command = "python {project}/cel_basic_test.py"
build-verbosity = 1

[tool.cibuildwheel.linux]
build-frontend = { name = "pip", args = ["--no-build-isolation"] }
before-build = "pip install --no-index --find-links={project}/build_deps setuptools wheel"
archs = ["x86_64", "aarch64"]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
container-engine = "docker; disable_host_mount: True"
# Google's internal Kokoro/RBE network uses a secure MITM proxy that resigns HTTPS
# traffic with an internal Google CA. Since the public manylinux container does not
# trust this CA, git fetches for external dependencies (like @cel-cpp) will fail
# with SSL certificate errors. We disable http.sslVerify inside the container to
# bypass this and allow Bazel to fetch SCM dependencies through the proxy.
before-all = "git config --global http.sslVerify false && echo 'Installing bazelisk' && cp {project}/bazelisk-linux-amd64 /usr/local/bin/bazel"
before-all = "git config --global http.sslVerify false && echo 'Installing bazelisk' && if [ $(uname -m) = 'aarch64' ]; then cp {project}/bazelisk-linux-arm64 /usr/local/bin/bazel; else cp {project}/bazelisk-linux-amd64 /usr/local/bin/bazel; fi && python3 -m pip install --no-index --find-links={project}/build_deps virtualenv"

[tool.cibuildwheel.macos]
before-all = "echo 'Installing bazelisk'; brew install bazelisk"
Expand Down
Loading