]> granicus.if.org Git - python/commitdiff
Fixes distutils adding/expecting too many _d suffixes.
authorSteve Dower <steve.dower@microsoft.com>
Tue, 16 Dec 2014 04:45:23 +0000 (20:45 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Tue, 16 Dec 2014 04:45:23 +0000 (20:45 -0800)
Lib/distutils/command/build_ext.py
Lib/distutils/tests/test_install.py

index 605efbd68f132daf33346ef9e631b203e3e6b030..c5a3ce1915dbd8fd5ec2ce64723bb0a38a39222c 100644 (file)
@@ -691,10 +691,7 @@ class build_ext(Command):
         """
         from distutils.sysconfig import get_config_var
         ext_path = ext_name.split('.')
-        # extensions in debug_mode are named 'module_d.pyd' under windows
         ext_suffix = get_config_var('EXT_SUFFIX')
-        if os.name == 'nt' and self.debug:
-            return os.path.join(*ext_path) + '_d' + ext_suffix
         return os.path.join(*ext_path) + ext_suffix
 
     def get_export_symbols(self, ext):
index 18e1e575054f4c9e8ce3679e540cf6bd232b1d55..9313330e2b722afc56096c7ca5e963a56aa6037d 100644 (file)
@@ -20,8 +20,6 @@ from distutils.tests import support
 
 
 def _make_ext_name(modname):
-    if os.name == 'nt' and sys.executable.endswith('_d.exe'):
-        modname += '_d'
     return modname + sysconfig.get_config_var('EXT_SUFFIX')