summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorLuke Rohde <rohde.luke@gmail.com>2015-09-02 14:09:09 -0400
committerLuke Rohde <rohde.luke@gmail.com>2015-09-02 14:49:02 -0400
commit647e48f7760454e95e5aef6110299846e18849b1 (patch)
tree6e76b985edb3c4c7c7c1b97156f4ca41c491f438 /hacking
parent45aac6a7391581e63c3d0fd16c31f1193909a3cb (diff)
downloadansible-647e48f7760454e95e5aef6110299846e18849b1.tar.gz
Delete all compiled python files when running hacking/env-setup
Diffstat (limited to 'hacking')
-rw-r--r--hacking/env-setup2
-rw-r--r--hacking/env-setup.fish1
2 files changed, 3 insertions, 0 deletions
diff --git a/hacking/env-setup b/hacking/env-setup
index 8ba483279b..2bd08b46d5 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
+ rm **/*.pyc > /dev/null 2>&1
else
gen_egg_info
+ rm **/*.pyc
fi
cd "$current_dir"
)
diff --git a/hacking/env-setup.fish b/hacking/env-setup.fish
index 1b872f4dc0..079a10b47d 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
+rm **/*.pyc
popd