Merge "Ensure __pycache__ folder is deleted"
This commit is contained in:
commit
c6ffb8a729
@ -92,7 +92,9 @@
|
|||||||
# to https://github.com/pypa/virtualenv/issues/565
|
# to https://github.com/pypa/virtualenv/issues/565
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
shell: |
|
shell: |
|
||||||
|
set -o errexit
|
||||||
find {{ neutron_bin }} -name \*.pyc -delete
|
find {{ neutron_bin }} -name \*.pyc -delete
|
||||||
|
if test -d {{ neutron_bin }}/__pycache__; then rmdir {{ neutron_bin }}/__pycache__; fi
|
||||||
sed -si '1s/^.*python.*$/#!{{ neutron_bin | replace ('/','\/') }}\/python/' {{ neutron_bin }}/*
|
sed -si '1s/^.*python.*$/#!{{ neutron_bin | replace ('/','\/') }}\/python/' {{ neutron_bin }}/*
|
||||||
virtualenv {{ neutron_bin | dirname }} \
|
virtualenv {{ neutron_bin | dirname }} \
|
||||||
{{ (ansible_pkg_mgr == 'apt') | ternary('--always-copy', '') }} \
|
{{ (ansible_pkg_mgr == 'apt') | ternary('--always-copy', '') }} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user