summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2014-12-15 20:45:23 -0800
committerSteve Dower <steve.dower@microsoft.com>2014-12-15 20:45:23 -0800
commitbebd47ea3228d5f71b06cf467410fac0eac2d3ee (patch)
tree470490a3a75a5dda1cea85045bbff130ce650692
parente25c444f65824e882fbb6493578ee1db836721bd (diff)
downloadpython-setuptools-git-bebd47ea3228d5f71b06cf467410fac0eac2d3ee.tar.gz
Fixes distutils adding/expecting too many _d suffixes.
-rw-r--r--command/build_ext.py3
-rw-r--r--tests/test_install.py2
2 files changed, 0 insertions, 5 deletions
diff --git a/command/build_ext.py b/command/build_ext.py
index 605efbd6..c5a3ce19 100644
--- a/command/build_ext.py
+++ b/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/tests/test_install.py b/tests/test_install.py
index 18e1e575..9313330e 100644
--- a/tests/test_install.py
+++ b/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')