diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:28:35 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:28:35 -0500 |
commit | 82390398562436f2928083066d8b1d2e786643fc (patch) | |
tree | df0e55f80f7092e2d9921f6d35862578ae9cfa5b /setuptools/command/build_ext.py | |
parent | df765dcb6204366f4662004217997af35590fb9b (diff) | |
download | external_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.tar.gz external_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.tar.bz2 external_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.zip |
Add comments for clarity.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r-- | setuptools/command/build_ext.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index 2df3bc70..f0913115 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -200,11 +200,13 @@ class build_ext(_build_ext): return _build_ext.get_outputs(self) + self.__get_stubs_outputs() def __get_stubs_outputs(self): + # assemble the base name for each extension that needs a stub ns_ext_bases = ( os.path.join(self.build_lib, *ext._full_name.split('.')) for ext in self.extensions if ext._needs_stub ) + # pair each base with the extension pairs = itertools.product(ns_ext_bases, self.__get_output_extensions()) return (base + fnext for base, fnext in pairs) |