From 93ce5fa105648f72db748d1a560b1ffb8a163905 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Thu, 18 Oct 2018 10:06:08 -0700 Subject: [PATCH] Pin argparse for idempotent pip installs Argparse is part of the Python standard library in 2.7 but is still an unmarked and unpinned downstream dependency of some packages (unittest2==1.1.0 for example). Ubuntu's libpython2.7-stdlib package includes an argparse.egg-info file setting its version to 1.2.1. The python_venv_build process will try to build and install the latest version of argparse available in PyPI, 1.4.0, but this will never actually install over the existing standard library install. The pip module currently marks the install as changed regardless, causing a restart of OpenStack services during every playbook run. Change-Id: I8be207c359388d00b34448318bc17c8b0039c4db --- global-requirement-pins.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/global-requirement-pins.txt b/global-requirement-pins.txt index ec198a797b..784ad64ee9 100644 --- a/global-requirement-pins.txt +++ b/global-requirement-pins.txt @@ -16,6 +16,7 @@ Cython<0.28 ### # Bumping pip to version 10 fails in tempest when trying to install # packages with an empty list. +argparse==1.2.1;python_version=='2.7' pip==18.0 setuptools==40.0.0 wheel==0.31.1