[Python-checkins] cpython: Fixes distutils adding/expecting too many _d suffixes.

steve.dower python-checkins at python.org
Tue Dec 16 05:51:59 CET 2014


https://hg.python.org/cpython/rev/e91bc3e5eb22
changeset: 93903:e91bc3e5eb22
user: Steve Dower <steve.dower at microsoft.com>
date: Mon Dec 15 20:45:23 2014 -0800
summary:
 Fixes distutils adding/expecting too many _d suffixes.
files:
 Lib/distutils/command/build_ext.py | 3 ---
 Lib/distutils/tests/test_install.py | 2 --
 2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -691,10 +691,7 @@
 """
 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
--- a/Lib/distutils/tests/test_install.py
+++ b/Lib/distutils/tests/test_install.py
@@ -20,8 +20,6 @@
 
 
 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')
 
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /