Merge pull request #12217 from thyming/hacking-remove-pyc

Delete all compiled python files when running hacking/env-setup
This commit is contained in:
Brian Coca 2015-09-02 17:13:04 -04:00
commit 88d3751c28
2 changed files with 3 additions and 0 deletions

View file

@ -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"
)

View file

@ -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