From f5cdd46e2f433f96c8708b024a210885195fceda Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 5 Dec 2006 09:32:31 +0000 Subject: [PATCH] optimize size --- library/setup.py | 8 ++++---- 1 file 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