From 74da9afb4dae6ad548895da2169a4f2cd76617dd Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 3 Nov 2016 09:10:25 +0800 Subject: 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. --- setuptools/command/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') 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): -- cgit v1.2.1