Merge "Ensure __pycache__ folder is deleted"

This commit is contained in:
Zuul 2018-07-22 12:59:23 +00:00 committed by Gerrit Code Review
commit c6ffb8a729

View File

@ -92,7 +92,9 @@
# to https://github.com/pypa/virtualenv/issues/565
- name: Update virtualenv path
shell: |
set -o errexit
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 }}/*
virtualenv {{ neutron_bin | dirname }} \
{{ (ansible_pkg_mgr == 'apt') | ternary('--always-copy', '') }} \