diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:06:35 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:06:35 -0500 |
commit | 7fe63f7e3e848af843baa909930c1a61dcc2fbdd (patch) | |
tree | cb9a87d8ba8337e9428b7ad708d09318d4990885 /setuptools/command/build_ext.py | |
parent | d9de5582d21b62794bbdb39c0da11d711889c442 (diff) | |
download | python-setuptools-git-7fe63f7e3e848af843baa909930c1a61dcc2fbdd.tar.gz |
Extract filtering of extensions that need stubs.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r-- | setuptools/command/build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index dae9c81e..5327a030 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -198,8 +198,8 @@ class build_ext(_build_ext): def get_outputs(self): outputs = _build_ext.get_outputs(self) optimize = self.get_finalized_command('build_py').optimize - for ext in self.extensions: - if ext._needs_stub: + ns_ext = (ext for ext in self.extensions if ext._needs_stub) + for ext in ns_ext: base = os.path.join(self.build_lib, *ext._full_name.split('.')) outputs.append(base + '.py') outputs.append(base + '.pyc') |