Merge "Revert "Workaround for new pip 20.3 behavior""
This commit is contained in:
commit
57a868dd87
@ -378,12 +378,13 @@ function _setup_package_with_constraints_edit {
|
||||
project_dir=$(cd $project_dir && pwd)
|
||||
|
||||
if [ -n "$REQUIREMENTS_DIR" ]; then
|
||||
# Constrain this package to this project directory from here on out.
|
||||
# Remove this package from constraints before we install it.
|
||||
# That way, later installs won't "downgrade" the install from
|
||||
# source we are about to do.
|
||||
local name
|
||||
name=$(awk '/^name.*=/ {print $3}' $project_dir/setup.cfg)
|
||||
$REQUIREMENTS_DIR/.venv/bin/edit-constraints \
|
||||
$REQUIREMENTS_DIR/upper-constraints.txt -- $name \
|
||||
"$flags file://$project_dir#egg=$name"
|
||||
$REQUIREMENTS_DIR/upper-constraints.txt -- $name
|
||||
fi
|
||||
|
||||
setup_package $bindep $project_dir "$flags" $extras
|
||||
|
@ -709,9 +709,6 @@ function install_tempest {
|
||||
set_tempest_venv_constraints $tmp_u_c_m
|
||||
|
||||
tox -r --notest -efull
|
||||
# TODO: remove the trailing pip constraint when a proper fix
|
||||
# arrives for bug https://bugs.launchpad.net/devstack/+bug/1906322
|
||||
$TEMPEST_DIR/.tox/tempest/bin/pip install -U -r $RC_DIR/tools/cap-pip.txt
|
||||
# NOTE(mtreinish) Respect constraints in the tempest full venv, things that
|
||||
# are using a tox job other than full will not be respecting constraints but
|
||||
# running pip install -U on tempest requirements
|
||||
|
@ -1 +0,0 @@
|
||||
pip<20.3
|
@ -155,8 +155,23 @@ function fixup_ovn_centos {
|
||||
yum_install centos-release-openstack-victoria
|
||||
}
|
||||
|
||||
function fixup_ubuntu {
|
||||
if ! is_ubuntu; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Since pip10, pip will refuse to uninstall files from packages
|
||||
# that were created with distutils (rather than more modern
|
||||
# setuptools). This is because it technically doesn't have a
|
||||
# manifest of what to remove. However, in most cases, simply
|
||||
# overwriting works. So this hacks around those packages that
|
||||
# have been dragged in by some other system dependency
|
||||
sudo rm -rf /usr/lib/python3/dist-packages/PyYAML-*.egg-info
|
||||
}
|
||||
|
||||
function fixup_all {
|
||||
fixup_keystone
|
||||
fixup_ubuntu
|
||||
fixup_fedora
|
||||
fixup_suse
|
||||
}
|
||||
|
@ -91,9 +91,7 @@ function install_get_pip {
|
||||
die $LINENO "Download of get-pip.py failed"
|
||||
touch $LOCAL_PIP.downloaded
|
||||
fi
|
||||
# TODO: remove the trailing pip constraint when a proper fix
|
||||
# arrives for bug https://bugs.launchpad.net/devstack/+bug/1906322
|
||||
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP -c $TOOLS_DIR/cap-pip.txt
|
||||
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP
|
||||
}
|
||||
|
||||
|
||||
@ -130,11 +128,6 @@ if [[ -n $PYPI_ALTERNATIVE_URL ]]; then
|
||||
configure_pypi_alternative_url
|
||||
fi
|
||||
|
||||
# Just use system pkgs on Focal
|
||||
if [[ "$DISTRO" == focal ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Eradicate any and all system packages
|
||||
|
||||
# Python in fedora/suse depends on the python-pip package so removing it
|
||||
|
Loading…
x
Reference in New Issue
Block a user