summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Zakai <kripkensteiner@gmail.com>2006-12-05 09:32:31 +0000
committerAlon Zakai <kripkensteiner@gmail.com>2006-12-05 09:32:31 +0000
commitf5cdd46e2f433f96c8708b024a210885195fceda (patch)
treee331220ce1afe1a4dd4fdf4a516d1041e79e5a05
parent03a8a31e243355595d65ac21a5feffebc031e19c (diff)
downloaddeluge-f5cdd46e2f433f96c8708b024a210885195fceda.tar.gz
deluge-f5cdd46e2f433f96c8708b024a210885195fceda.tar.bz2
deluge-f5cdd46e2f433f96c8708b024a210885195fceda.zip
optimize size
-rw-r--r--library/setup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/setup.py b/library/setup.py
index 03937afe5..8c4bd8b8c 100644
--- a/library/setup.py
+++ b/library/setup.py
@@ -24,7 +24,7 @@ command = sys.argv[1]
assert(command in ['build', 'install'])
removals = ['-g', '-DNDEBUG', '-O2', '-Wstrict-prototypes']
-addition = "-DNDEBUG -Os"
+addition = "-DNDEBUG -O2" # Oddly, -O2 gives smaller .o's than -Os
import platform
@@ -36,7 +36,7 @@ print "========================================="
import os
-p = os.popen("python setup.py --dry-run build")
+p = os.popen("python setup_naive.py --dry-run build")
data = p.readlines()
p.close()
@@ -58,8 +58,8 @@ for line in data:
# Now redo it, for real. Nothing should occur, except for installation, if requested
print "Finalizing..."
-p = os.popen("python setup.py " + command)
+p = os.popen("python setup_naive.py " + command)
data = p.readlines()
p.close()
-print "".join(data)
+#print "".join(data) # Errors from the pipe are shown before we print... not good