Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-16 12:54:54 +00:00 committed by Gerrit Code Review
commit fdee86037a
2 changed files with 4 additions and 3 deletions

View File

@ -115,7 +115,6 @@ zaqar_unreliable: true
# zaqar packages that must be installed before anything else
zaqar_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
# Common pip packages

View File

@ -133,9 +133,11 @@
- zaqar-pip-packages
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ zaqar_bin | dirname }}
shell: |
find {{ zaqar_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ zaqar_bin | replace ('/','\/') }}\/python/' {{ zaqar_bin }}/*
when: zaqar_get_venv | changed
tags:
- skip_ansible_lint
- zaqar-install
- zaqar-pip-packages