dep-protobuf/python/dist/setup_wrapper.sh
Aaron Levy 508aba1b50 Updating setuptools to patch CVE-2025-47273 (#22094)
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
2025-07-08 13:58:42 -07:00

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 "$@"