From: Thomas Heller Date: Mon, 26 May 2008 11:42:40 +0000 (+0000) Subject: On Windows, we must build a debug version iff running a debug build of X-Git-Tag: v2.6b1~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4701e638c1030e575adf441aab01ad6319cc83d;p=python On Windows, we must build a debug version iff running a debug build of Python --- diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index b5c2aa2339..a658f1aa1c 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -28,6 +28,10 @@ class BuildExtTestCase(unittest.TestCase): dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]}) dist.package_dir = self.tmp_dir cmd = build_ext(dist) + if os.name == "nt": + # On Windows, we must build a debug version iff running + # a debug build of Python + cmd.debug = sys.executable.endswith("_d.exe") cmd.build_lib = self.tmp_dir cmd.build_temp = self.tmp_dir