Merge "Revert "Use SETUPTOOLS_USE_DISTUTILS=stdlib for global pip installs""

This commit is contained in:
Zuul 2024-11-17 12:25:19 +00:00 committed by Gerrit Code Review
commit 72f99641f1

View File

@ -199,13 +199,7 @@ function pip_install {
echo "Using python $PYTHON3_VERSION to install $package_dir" echo "Using python $PYTHON3_VERSION to install $package_dir"
else else
local cmd_pip="python$PYTHON3_VERSION -m pip" local cmd_pip="python$PYTHON3_VERSION -m pip"
# See local sudo_pip="sudo -H LC_ALL=en_US.UTF-8"
# https://github.com/pypa/setuptools/issues/2232
# http://lists.openstack.org/pipermail/openstack-discuss/2020-August/016905.html
# this makes setuptools >=50 use the platform distutils.
# We only want to do this on global pip installs, not if
# installing in a virtualenv
local sudo_pip="sudo -H LC_ALL=en_US.UTF-8 SETUPTOOLS_USE_DISTUTILS=stdlib "
echo "Using python $PYTHON3_VERSION to install $package_dir" echo "Using python $PYTHON3_VERSION to install $package_dir"
fi fi