From d57146ac50fca72f3fe263385da7d50d1c9d5cbf Mon Sep 17 00:00:00 2001 From: zooko Date: Sat, 19 Jan 2008 08:33:22 +0530 Subject: [PATCH] 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 --- zfec/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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=[] -- 2.45.2