Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-01-16 12:33:04 +00:00 committed by Gerrit Code Review
commit f13336a0d7
2 changed files with 6 additions and 4 deletions

View File

@ -64,7 +64,6 @@ molteniron_requires_pip_packages:
- sqlalchemy
- sqlalchemy_utils
- virtualenv
- virtualenv-tools
# Common pip packages
molteniron_pip_packages:

View File

@ -104,11 +104,14 @@
when: molteniron_developer_mode | bool
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ molteniron_bin | dirname }}
shell: |
find {{ molteniron_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ molteniron_bin | replace ('/','\/') }}\/python/' {{ molteniron_bin }}/*
when:
- not molteniron_developer_mode | bool
- molteniron_get_venv | changed or molteniron_venv_dir | changed
- molteniron_get_venv | changed
tags:
- skip_ansible_lint
- name: Record the venv tag deployed
ini_file: