diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-01-19 12:46:30 -0500 |
commit | 3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b (patch) | |
tree | ffbf9cd5a02337ced626892b672b7e21bd305717 /setuptools/command/build_ext.py | |
parent | a0e8d0568d84e29066a5b45aade5aafe28237ec0 (diff) | |
download | external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.tar.gz external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.tar.bz2 external_python_setuptools-3d4d8b9dde61b87271861b8c7ebeb168ac4fa72b.zip |
👹 Feed the hobgoblins (delint).
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(): |