diff --git a/hacking/env-setup b/hacking/env-setup index 8ba483279b..605e41dafb 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -57,8 +57,10 @@ fi cd "$ANSIBLE_HOME" if [ "$verbosity" = silent ] ; then gen_egg_info > /dev/null 2>&1 + find . -type f -name "*.pyc" -delete > /dev/null 2>&1 else gen_egg_info + find . -type f -name "*.pyc" -delete fi cd "$current_dir" ) diff --git a/hacking/env-setup.fish b/hacking/env-setup.fish index 1b872f4dc0..d0bc717905 100644 --- a/hacking/env-setup.fish +++ b/hacking/env-setup.fish @@ -43,6 +43,7 @@ if test -e $PREFIX_PYTHONPATH/ansible*.egg-info rm -r $PREFIX_PYTHONPATH/ansible*.egg-info end mv ansible*egg-info $PREFIX_PYTHONPATH +find . -type f -name "*.pyc" -delete popd