summaryrefslogtreecommitdiff
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-11-03 09:10:25 +0800
committerGitHub <noreply@github.com>2016-11-03 09:10:25 +0800
commit74da9afb4dae6ad548895da2169a4f2cd76617dd (patch)
tree9cd450df2e94617b60764dcd23faebef9a3c61ce /setuptools/command/build_ext.py
parent1bbacb74a51c30cdf3effecbef01c533995e0f7e (diff)
downloadpython-setuptools-git-74da9afb4dae6ad548895da2169a4f2cd76617dd.tar.gz
Support Python 3.3.0 for extension suffix
In setuptools 27.0+ extension building fails on Python 3.3.0 because the extension suffix is obtained using `SO` and not `EXT_SUFFIX` (which is used in 3.3.1 and above). See: https://hg.python.org/cpython/file/v3.3.0/Lib/distutils/command/build_ext.py#l673 This patch tries `EXT_SUFFIX` and falls back to `SO` if `EXT_SUFFIX` is falsey.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index a66e0bf3..aae02b0a 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -109,7 +109,7 @@ class build_ext(_build_ext):
and get_abi3_suffix()
)
if use_abi3:
- so_ext = get_config_var('EXT_SUFFIX')
+ so_ext = get_config_var("EXT_SUFFIX") or get_config_var("SO")
filename = filename[:-len(so_ext)]
filename = filename + get_abi3_suffix()
if isinstance(ext, Library):