diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-15 06:13:10 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-15 06:13:10 -0400 |
commit | 619e229c9777f0ee0851d8c5c94caaad7d89d434 (patch) | |
tree | 2013eec1df4def402792a3b932d904b714b7e493 /setuptools/command/build_ext.py | |
parent | b0657c80db7891a9eca038199d5d4c2e2bafed03 (diff) | |
parent | e04c75ab906caadff4609ef34de8973c8e92eff8 (diff) | |
download | external_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.tar.gz external_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.tar.bz2 external_python_setuptools-619e229c9777f0ee0851d8c5c94caaad7d89d434.zip |
Merge branch 'master' into docs/setup.cfg-only
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r-- | setuptools/command/build_ext.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index 1b51e040..03b6f346 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -14,7 +14,8 @@ from setuptools.extern import six if six.PY2: import imp - EXTENSION_SUFFIXES = [s for s, _, tp in imp.get_suffixes() if tp == imp.C_EXTENSION] + EXTENSION_SUFFIXES = [ + s for s, _, tp in imp.get_suffixes() if tp == imp.C_EXTENSION] else: from importlib.machinery import EXTENSION_SUFFIXES @@ -29,7 +30,7 @@ except ImportError: # make sure _config_vars is initialized get_config_var("LDSHARED") -from distutils.sysconfig import _config_vars as _CONFIG_VARS +from distutils.sysconfig import _config_vars as _CONFIG_VARS # noqa def _customize_compiler_for_shlib(compiler): @@ -65,7 +66,9 @@ elif os.name != 'nt': except ImportError: pass -if_dl = lambda s: s if have_rtld else '' + +def if_dl(s): + return s if have_rtld else '' def get_abi3_suffix(): |