You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wi...@apache.org on 2014/06/24 01:44:48 UTC

git commit: Add a python clean.sh script

Repository: incubator-aurora
Updated Branches:
  refs/heads/master 097acb6c2 -> 9b657eaee


Add a python clean.sh script

A script to clean out installed dependencies so I don't use the one in
twitter commons or pantsbuild.

Testing Done:
It works?

Reviewed at https://reviews.apache.org/r/22747/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/9b657eae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/9b657eae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/9b657eae

Branch: refs/heads/master
Commit: 9b657eaee4f188ed25639ec1452789f6eade4273
Parents: 097acb6
Author: Joe Smith <ya...@gmail.com>
Authored: Mon Jun 23 16:44:43 2014 -0700
Committer: Brian Wickman <wi...@apache.org>
Committed: Mon Jun 23 16:44:43 2014 -0700

----------------------------------------------------------------------
 build-support/python/clean.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/9b657eae/build-support/python/clean.sh
----------------------------------------------------------------------
diff --git a/build-support/python/clean.sh b/build-support/python/clean.sh
new file mode 100755
index 0000000..e92313b
--- /dev/null
+++ b/build-support/python/clean.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -ux
+
+AURORA_BASE=$(dirname "$0")/../..
+rm -rf "$HOME/.pex"
+rm -rf "$AURORA_BASE/.pants.d"
+rm -rf "$AURORA_BASE/.python"
+rm -f  "$AURORA_BASE/pants.pex"
+find "$AURORA_BASE" -name '*.pyc' | xargs rm -f