Try to fix packaging tests using build_ext on Windows (#12678)

This commit is contained in:
Éric Araujo 2011-08-23 21:38:13 +02:00
parent aec2f21f71
commit 0fe3605cac
2 changed files with 18 additions and 19 deletions

View file

@ -40,11 +40,6 @@ class BuildExtTestCase(support.TempdirManager,
dist.package_dir = self.tmp_dir
cmd = build_ext(dist)
support.fixup_build_ext(cmd)
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
@ -236,9 +231,6 @@ class BuildExtTestCase(support.TempdirManager,
cmd.ensure_finalized()
self.assertEqual(len(cmd.get_outputs()), 1)
if os.name == "nt":
cmd.debug = sys.executable.endswith("_d.exe")
cmd.build_lib = os.path.join(self.tmp_dir, 'build')
cmd.build_temp = os.path.join(self.tmp_dir, 'tempt')