[Python-checkins] r63670 - python/trunk/Lib/distutils/tests/test_build_ext.py
thomas.heller
python-checkins at python.org
Mon May 26 13:42:41 CEST 2008
Author: thomas.heller
Date: Mon May 26 13:42:40 2008
New Revision: 63670
Log:
On Windows, we must build a debug version iff running a debug build of
Python
Modified:
python/trunk/Lib/distutils/tests/test_build_ext.py
Modified: python/trunk/Lib/distutils/tests/test_build_ext.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_build_ext.py (original)
+++ python/trunk/Lib/distutils/tests/test_build_ext.py Mon May 26 13:42:40 2008
@@ -28,6 +28,10 @@
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
More information about the Python-checkins
mailing list