summaryrefslogtreecommitdiff
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:02:30 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:02:30 -0500
commit8f8ff1d8c42f1aeb371134abd9a96e3f876e09be (patch)
tree1237c359e0c680f5a959d6c15130c8e03fdc35a1 /setuptools/command/build_ext.py
parent956dce0ba58ab95298b872155543259467054557 (diff)
downloadpython-setuptools-git-8f8ff1d8c42f1aeb371134abd9a96e3f876e09be.tar.gz
Extract variable for simplicity of indentation.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index be5e974c..b6eb89eb 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -181,9 +181,8 @@ class build_ext(_build_ext):
self.compiler = self.shlib_compiler
_build_ext.build_extension(self, ext)
if ext._needs_stub:
- self.write_stub(
- self.get_finalized_command('build_py').build_lib, ext
- )
+ cmd = self.get_finalized_command('build_py').build_lib
+ self.write_stub(cmd, ext)
finally:
self.compiler = _compiler