mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Try to fix packaging tests using build_ext on Windows (#12678)
This commit is contained in:
parent
aec2f21f71
commit
0fe3605cac
2 changed files with 18 additions and 19 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue