Skip to content

Commit

Permalink
Use --no-cache-dir options for pip install
Browse files Browse the repository at this point in the history
Use --no-cache-dir option when running the unit tests
and creating the venv to avoid issues with using the
cached package

Change-Id: I0e415705c56ce419c55817d21623b61ca5f65eba
Closes-Bug: #1558776
  • Loading branch information
Megh Bhatt committed Mar 17, 2016
1 parent 22107b0 commit 971a769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/common/tests/tools/install_venv_common.py
Expand Up @@ -108,7 +108,7 @@ def create_virtualenv(self, no_site_packages=True):
def pip_install(self, find_links, *args):
find_links_str = ' '.join('--find-links file://'+x for x in find_links)
cmd_array = ['%stools/with_venv.sh' %(os.environ.get('tools_path', '')),
'python', '.venv/bin/pip', 'install',
'python', '.venv/bin/pip', 'install', '--no-cache-dir',
'--upgrade']
for link in find_links:
cmd_array.extend(['--find-links', 'file://'+link])
Expand Down

0 comments on commit 971a769

Please sign in to comment.