From 7b3524feadacf8a300c821b465e756acc95331f8 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Mon, 27 Feb 2017 15:47:43 -0500 Subject: [PATCH] Update pip in DLRN venv Newer versions of setuptools require an updated pip to be installed. Running the --delorean-setup locally is actually failing for me with (not sure what the difference is compared to CI, but probably is due to using the infra created CentOS image which has updated pip/virtualenv already): ImportError: No module named six.moves This is an expected problem with newer versions of setuptools per https://github.com/pypa/setuptools/issues/942#issuecomment-274817619 https://github.com/pypa/setuptools/issues/937 We're already using the latest packaged versions of virtualenv and pip on CentOS so the fix is to first update pip in the newly created virtualenv. Change-Id: Ibc0e266d48dec587c8221f8392f060b58496def4 --- scripts/tripleo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/tripleo.sh b/scripts/tripleo.sh index 507a827fa..69b9723a9 100755 --- a/scripts/tripleo.sh +++ b/scripts/tripleo.sh @@ -398,6 +398,7 @@ function delorean_setup { # NOTE(pabelanger): We need to update setuptools to the latest version for # CentOS 7. Also, pytz is not declared as a dependency so we need to # manually add it. Lastly, use pip install . to use wheel AFS pypi mirrors. + ./venv/bin/pip install -U pip ./venv/bin/pip install -U setuptools ./venv/bin/pip install pytz ./venv/bin/pip install .