mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Updating setuptools to patch CVE-2025-47273
Also updated Bazel to 7.4.0 due to https://github.com/bazelbuild/bazel/issues/4327
Fixes #22165
Closes #22094
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/22094 from aaronmaxlevy:aaron_update_setuptools e1278abf68
PiperOrigin-RevId: 780701752
16 lines
497 B
Bash
Executable file
16 lines
497 B
Bash
Executable file
#!/bin/bash
|
|
set -eux
|
|
|
|
# Find the setuptools directory and add it to PYTHONPATH
|
|
SETUPTOOLS_PATH=$(find $PWD -name "setuptools" -type d | grep site-packages | head -1)
|
|
if [ -z "$SETUPTOOLS_PATH" ]; then
|
|
echo "Warning: Could not find setuptools directory"
|
|
else
|
|
SITE_PACKAGES_DIR=$(dirname "$SETUPTOOLS_PATH")
|
|
echo "Using setuptools from: $SITE_PACKAGES_DIR"
|
|
export PYTHONPATH="$SITE_PACKAGES_DIR"
|
|
fi
|
|
|
|
# Run setup.py with the arguments passed to this script
|
|
cd protobuf/
|
|
python3 setup.py "$@"
|