Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-19 18:08:15 +00:00 committed by Gerrit Code Review
commit 8ef8e2396b
2 changed files with 6 additions and 3 deletions

View File

@ -187,7 +187,6 @@ heat_plugin_dirs:
# Heat packages that must be installed before anything else
heat_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
- httplib2

View File

@ -109,9 +109,13 @@
- heat_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ heat_bin | dirname }}
shell: |
find {{ heat_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ heat_bin | replace ('/','\/') }}\/python/' {{ heat_bin }}/*
virtualenv {{ heat_bin | dirname }}
when: heat_get_venv | changed
tags:
- skip_ansible_lint
- name: Record the venv tag deployed
ini_file: