setup: remove "--debug" from sys.argv if it is present, after detecting it, so that...
authorzooko <zooko@zooko.com>
Sat, 19 Jan 2008 03:03:22 +0000 (08:33 +0530)
committerzooko <zooko@zooko.com>
Sat, 19 Jan 2008 03:03:22 +0000 (08:33 +0530)
darcs-hash:9afbeab84300f6dccd3d0449b6afcf11595d0210

zfec/setup.py

index 26acf6e95606fbc4db67b5dc466b979b311e217a..a39ad4bd8061064a22595ed0e52965f3baeaf046 100755 (executable)
@@ -27,7 +27,11 @@ else:
 
 from setuptools import Extension, find_packages, setup
 
-DEBUGMODE=("--debug" in sys.argv)
+if "--debug" in sys.argv:
+    DEBUGMODE=True
+    sys.argv.remove("--debug")
+else:
+    DEBUGMODE=("--debug" in sys.argv)
 
 extra_compile_args=[]
 extra_link_args=[]