From: zooko Date: Sat, 19 Jan 2008 03:03:22 +0000 (+0530) Subject: setup: remove "--debug" from sys.argv if it is present, after detecting it, so that... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css/flags/nxhtml.html?a=commitdiff_plain;h=d57146ac50fca72f3fe263385da7d50d1c9d5cbf;p=tahoe-lafs%2Fzfec.git setup: remove "--debug" from sys.argv if it is present, after detecting it, so that debug mode will work with commands such as "./setup.py test" darcs-hash:9afbeab84300f6dccd3d0449b6afcf11595d0210 --- diff --git a/zfec/setup.py b/zfec/setup.py index 26acf6e..a39ad4b 100755 --- a/zfec/setup.py +++ b/zfec/setup.py @@ -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=[]