aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:01:15 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:01:15 -0500
commit956dce0ba58ab95298b872155543259467054557 (patch)
treea0a64610d47c6e9f770d700aec6dfa35a4230274 /setuptools/command/build_ext.py
parent3b434b5bd5a1e5e04461302850d0e2248cc828b1 (diff)
downloadexternal_python_setuptools-956dce0ba58ab95298b872155543259467054557.tar.gz
external_python_setuptools-956dce0ba58ab95298b872155543259467054557.tar.bz2
external_python_setuptools-956dce0ba58ab95298b872155543259467054557.zip
Extract variables for clarity and simpler indentation.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index b30e6192..be5e974c 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -118,10 +118,10 @@ class build_ext(_build_ext):
# XXX what to do with conflicts?
self.ext_map[fullname.split('.')[-1]] = ext
- ltd = ext._links_to_dynamic = \
- self.shlibs and self.links_to_dynamic(ext) or False
- ext._needs_stub = ltd and use_stubs and not isinstance(ext,
- Library)
+ ltd = self.shlibs and self.links_to_dynamic(ext) or False
+ ns = ltd and use_stubs and not isinstance(ext, Library)
+ ext._links_to_dynamic = ltd
+ ext._needs_stub = ns
filename = ext._file_name = self.get_ext_filename(fullname)
libdir = os.path.dirname(os.path.join(self.build_lib, filename))
if ltd and libdir not in ext.library_dirs: