From: Steve Dower Date: Tue, 16 Dec 2014 04:45:23 +0000 (-0800) Subject: Fixes distutils adding/expecting too many _d suffixes. X-Git-Tag: v3.5.0a1~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09bd9ec9b3c563915b6428459032de6cda6c1336;p=python Fixes distutils adding/expecting too many _d suffixes. --- diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 605efbd68f..c5a3ce1915 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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): diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py index 18e1e57505..9313330e2b 100644 --- a/Lib/distutils/tests/test_install.py +++ b/Lib/distutils/tests/test_install.py @@ -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')