Merge "Replace virtualenv-tools by a script"
This commit is contained in:
commit
f13336a0d7
|
@ -64,7 +64,6 @@ molteniron_requires_pip_packages:
|
|||
- sqlalchemy
|
||||
- sqlalchemy_utils
|
||||
- virtualenv
|
||||
- virtualenv-tools
|
||||
|
||||
# Common pip packages
|
||||
molteniron_pip_packages:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue