summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@riseup.net>2014-09-02 13:36:33 -0400
committerTomás Touceda <chiiph@leap.se>2014-09-02 15:36:47 -0300
commit7ff0c5524e71e79cd2d041c090551ee1ca2de55d (patch)
tree9de1a0c95d89cb88c31280eaabb746acbe19afc3
parented95723fe8599c20eeebd228e1bb4f975ffefc23 (diff)
Add stripping
-rw-r--r--bundler/actions.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/bundler/actions.py b/bundler/actions.py
index 9b6b12a..30c86d3 100644
--- a/bundler/actions.py
+++ b/bundler/actions.py
@@ -32,7 +32,7 @@ if IS_WIN:
mv = pbs.Command("C:\\Program Files\\Git\\bin\\mv.exe")
else:
from sh import git, cd, python, mkdir, make, cp, glob, pip, rm
- from sh import find, ln, tar, mv
+ from sh import find, ln, tar, mv, strip
from depcollector import collect_deps
@@ -102,7 +102,7 @@ def get_version(repos, nightly):
if not nightly:
version = "unknown"
with push_pop("bitmask_client"):
- version = git("describe").strip()
+ version = git("describe", "--tags").strip()
return version
m = hashlib.sha256()
@@ -610,6 +610,13 @@ class PycRemover(Action):
files = find(self._basedir, "-name", "*.pyc").strip().splitlines()
for f in files:
rm(f)
+ files = find(self._basedir, "-name", "*\\.so*").strip().splitlines()
+ for f in files:
+ print "Stripping", f
+ try:
+ strip(f)
+ except:
+ pass
print "Done"