On Windows, we must build a debug version iff running a debug build of

Python
This commit is contained in:
Thomas Heller 2008-05-26 11:42:40 +00:00
parent e2caef7646
commit b4701e638c
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ class BuildExtTestCase(unittest.TestCase):
dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]}) dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]})
dist.package_dir = self.tmp_dir dist.package_dir = self.tmp_dir
cmd = build_ext(dist) 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_lib = self.tmp_dir
cmd.build_temp = self.tmp_dir cmd.build_temp = self.tmp_dir