]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix distutils tests on Windows (#12678).
authorÉric Araujo <merwok@netwok.org>
Tue, 23 Aug 2011 23:29:10 +0000 (01:29 +0200)
committerÉric Araujo <merwok@netwok.org>
Tue, 23 Aug 2011 23:29:10 +0000 (01:29 +0200)
commit175eb995d342ebdffb7f56d106fd47e7253a043a
tree24bd6cab5ef1ead31f82730cd385ec8c7755bcc8
parent7a084105a0ebd0b309ef9b036e9d7922d6c0c555
Fix distutils tests on Windows (#12678).

- First, support.fixup_build_ext (already used to set proper
  library_dirs value under Unix shared builds) gains the ability to
  correctly set the debug attribute under Windows debug builds.

- Second, the filename for the extension module gets a _d suffix under
  debug builds.

- Third, the test code properly puts our customized build_ext object
  into an internal dictionary to make sure that the install command will
  later use our object instead of re-creating one.  That’s the downside
  of using low-level APIs in our test code: we have to manually push
  knobs and turn handles that would otherwise be handled behind the
  scenes.

Thanks to Nadeem for the testing.
Lib/distutils/tests/support.py
Lib/distutils/tests/test_build_ext.py
Lib/distutils/tests/test_install.py