pip-and-virtualenv: also handle rhel distros

The current pip install script only checked for centos/fedora
This causes setuptools errrors like (with pbr install):
"SyntaxError: '<' operator not allowed in environment markers"

Explictly list distro names in that situation

Change-Id: I5c894ab6152acf5441231acc1215fe00967f4f31
This commit is contained in:
Bernard Cafarelli 2017-02-14 14:17:37 +01:00
parent b833960c69
commit fedea46c9e
No known key found for this signature in database
GPG Key ID: D148244A3C2462BD

View File

@ -6,7 +6,7 @@ fi
set -eu
set -o pipefail
if [[ $DISTRO_NAME =~ (centos|fedora) ]]; then
if [[ $DISTRO_NAME =~ (fedora|centos|centos7|rhel|rhel7) ]]; then
# GENERAL WARNING : mixing packaged python libraries with
# pip-installed versions always creates issues. Upstream
# openstack-infra uses this a lot (especially devstack) but be